Merge pull request #2433 from sylr/fix-test
Fix test not waiting for cluster member to be ready
This commit is contained in:
commit
20a1f8fd3f
|
@ -92,6 +92,7 @@ func testJoinLeave(t *testing.T) {
|
||||||
)
|
)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
go p2.Settle(context.Background(), 0*time.Second)
|
go p2.Settle(context.Background(), 0*time.Second)
|
||||||
|
p2.WaitReady()
|
||||||
|
|
||||||
require.Equal(t, 2, p.ClusterSize())
|
require.Equal(t, 2, p.ClusterSize())
|
||||||
p2.Leave(0 * time.Second)
|
p2.Leave(0 * time.Second)
|
||||||
|
|
Loading…
Reference in New Issue