mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 23:57:07 +00:00
local state: fix TestAgentAntiEntropy_EnableTagOverride
The test had a race condition where it relied on the first service to be synced to the remote catalog which sometimes failed.
This commit is contained in:
parent
1181aaee6a
commit
524981f367
@ -246,6 +246,9 @@ func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
|
|||||||
EnableTagOverride: true,
|
EnableTagOverride: true,
|
||||||
}
|
}
|
||||||
a.State.AddService(srv1, "")
|
a.State.AddService(srv1, "")
|
||||||
|
if err := a.State.SyncChanges(); err != nil {
|
||||||
|
t.Fatalf("err: %v", err)
|
||||||
|
}
|
||||||
srv1_mod := new(structs.NodeService)
|
srv1_mod := new(structs.NodeService)
|
||||||
*srv1_mod = *srv1
|
*srv1_mod = *srv1
|
||||||
srv1_mod.Port = 7100
|
srv1_mod.Port = 7100
|
||||||
|
Loading…
x
Reference in New Issue
Block a user