add AwaitState to test which re-opens node

This commit is contained in:
Travis 2021-02-01 17:34:12 -06:00
parent 26176c15eb
commit 4811958de4
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E

View file

@ -3554,6 +3554,10 @@ func TestExecutor_Execute_Existence(t *testing.T) {
t.Fatal(err)
}
if err := c.AwaitState(string(pilosa.ClusterStateNormal), 10*time.Second); err != nil {
t.Fatalf("restarting cluster: %v", err)
}
hldr2 := c.GetHolder(0)
index2 := hldr2.Index("i")
_ = index2