Added new test regarding checks index

pull/3970/head
Pierre Souchay 7 years ago
parent dd9efb755a
commit 39a7b5c20d

@ -2137,6 +2137,9 @@ func TestStateStore_DeleteCheck(t *testing.T) {
if err := s.DeleteCheck(3, "node1", "check1"); err != nil {
t.Fatalf("err: %s", err)
}
if idx := s.maxIndex("checks"); idx != 3 {
t.Fatalf("bad index: %d", idx)
}
if !watchFired(ws) {
t.Fatalf("bad")
}

Loading…
Cancel
Save