mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 08:32:15 +00:00
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)
|
||||
go p2.Settle(context.Background(), 0*time.Second)
|
||||
p2.WaitReady()
|
||||
|
||||
require.Equal(t, 2, p.ClusterSize())
|
||||
p2.Leave(0 * time.Second)
|
||||
|
Loading…
Reference in New Issue
Block a user