mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 16:04:50 +03:00
test(nodes): format the savepoint reconciliation fixture
Use a multiline composite literal accepted by the Go CI formatter.
This commit is contained in:
@@ -292,8 +292,10 @@ func TestNodeFullReconciliationExcludesRolledBackDetaches(t *testing.T) {
|
||||
const removedEmail = "removed@example.test"
|
||||
keep := model.Client{Email: "keep@example.test", Enable: true}
|
||||
initial := func(tag, email string, port int) *model.Inbound {
|
||||
return &model.Inbound{Tag: tag, Port: port, Protocol: model.VLESS, Enable: true,
|
||||
Settings: clientsSettings(t, []model.Client{keep, {Email: email, Enable: true}})}
|
||||
return &model.Inbound{
|
||||
Tag: tag, Port: port, Protocol: model.VLESS, Enable: true,
|
||||
Settings: clientsSettings(t, []model.Client{keep, {Email: email, Enable: true}}),
|
||||
}
|
||||
}
|
||||
original := &runtime.TrafficSnapshot{Inbounds: []*model.Inbound{
|
||||
initial(rejectedTag, rejectedEmail, 41010), initial(acceptedTag, removedEmail, 41011),
|
||||
|
||||
Reference in New Issue
Block a user