Fix main tests (#2670)

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2021-08-04 16:13:51 +02:00 committed by GitHub
parent 3962da4073
commit 3a9808c3f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +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.NoError(t, p2.WaitReady(context.Background()))
require.Equal(t, 2, p.ClusterSize()) require.Equal(t, 2, p.ClusterSize())
p2.Leave(0 * time.Second) p2.Leave(0 * time.Second)