Merge pull request #2433 from sylr/fix-test

Fix test not waiting for cluster member to be ready
This commit is contained in:
Julien Pivotto 2021-08-04 13:57:26 +02:00 committed by GitHub
commit 20a1f8fd3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)