diff --git a/dependency/consul_peering_test.go b/dependency/consul_peering_test.go index 72a6a1666..4b3c2b245 100644 --- a/dependency/consul_peering_test.go +++ b/dependency/consul_peering_test.go @@ -119,8 +119,7 @@ func TestListPeeringsQuery_Fetch(t *testing.T) { // create another peer err = testClients.createConsulPeerings(tenancy) require.NoError(t, err) - time.Sleep(200 * time.Millisecond) - + select { case err := <-errCh: if err != ErrStopped {