Fix test not waiting for cluster member to be ready

Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
This commit is contained in:
Sylvain Rabot 2020-12-10 16:16:54 +01:00
parent 193ebba04d
commit f4c7eb54aa
No known key found for this signature in database
GPG Key ID: 13D27DFB503A8D91
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ func testJoinLeave(t *testing.T) {
)
require.NoError(t, err)
go p2.Settle(context.Background(), 0*time.Second)
p2.WaitReady()
require.Equal(t, 2, p.ClusterSize())
p2.Leave(0 * time.Second)