Skip to content

Commit

Permalink
wait for serf check before starting the test (hashicorp#449)
Browse files Browse the repository at this point in the history
* wait for serf check so consul service exists in the catalog prior to running tests
  • Loading branch information
kschoche authored Mar 4, 2021
1 parent b0c0deb commit b875bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect-inject/cleanup_resource_ent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestReconcile_ConsulNamespaces(t *testing.T) {
server, err := testutil.NewTestServerConfigT(t, nil)
defer server.Stop()
require.NoError(err)
server.WaitForLeader(t)
server.WaitForSerfCheck(t)
consulClient, err := capi.NewClient(&capi.Config{Address: server.HTTPAddr})
require.NoError(err)

Expand Down Expand Up @@ -199,7 +199,7 @@ func TestDelete_ConsulNamespaces(t *testing.T) {
server, err := testutil.NewTestServerConfigT(t, nil)
defer server.Stop()
require.NoError(err)
server.WaitForLeader(t)
server.WaitForSerfCheck(t)
consulClient, err := capi.NewClient(&capi.Config{Address: server.HTTPAddr})
require.NoError(err)

Expand Down

0 comments on commit b875bfe

Please sign in to comment.