Revert "local state: make test more robust"
This reverts commit f9267380dbcdb2746393eee5067e5037dff2b184.
This commit is contained in:
parent
64d9529d94
commit
a6e55af1e0
|
@ -1036,12 +1036,14 @@ 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 {
|
|
||||||
t.Fatal("bad: %s", err)
|
// wait until the check is in sync
|
||||||
}
|
retry.Run(t, func(r *retry.R) {
|
||||||
if !inSync("web") {
|
if inSync("web") {
|
||||||
t.Fatal("check should be in sync")
|
return
|
||||||
}
|
}
|
||||||
|
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…
Reference in New Issue