mirror of
https://github.com/status-im/consul.git
synced 2025-01-25 13:10:32 +00:00
local state: make test more robust
This commit is contained in:
parent
af1243c725
commit
f9267380db
@ -1036,14 +1036,12 @@ func TestAgent_UpdateCheck_DiscardOutput(t *testing.T) {
|
|||||||
if err := a.State.AddCheck(check, ""); err != nil {
|
if err := a.State.AddCheck(check, ""); err != nil {
|
||||||
t.Fatalf("bad: %s", err)
|
t.Fatalf("bad: %s", err)
|
||||||
}
|
}
|
||||||
|
if err := a.State.SyncFull(); err != nil {
|
||||||
// wait until the check is in sync
|
t.Fatal("bad: %s", err)
|
||||||
retry.Run(t, func(r *retry.R) {
|
}
|
||||||
if inSync("web") {
|
if !inSync("web") {
|
||||||
return
|
t.Fatal("check should be in sync")
|
||||||
}
|
}
|
||||||
r.FailNow()
|
|
||||||
})
|
|
||||||
|
|
||||||
// update the check with the same status but different output
|
// update the check with the same status but different output
|
||||||
// and the check should still be in sync.
|
// and the check should still be in sync.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user