Skip to content

Commit

Permalink
Fix flay TestIntegrations/ProxyHostKeyCheck (#47902)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy authored Oct 25, 2024
1 parent e30b3b6 commit 702e7a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4858,6 +4858,13 @@ func testProxyHostKeyCheck(t *testing.T, suite *integrationTestSuite) {
_, err = clt.UpsertNode(context.Background(), server)
require.NoError(t, err)

// Wait for the node to be visible before continuing.
require.EventuallyWithT(t, func(t *assert.CollectT) {
found, err := clt.GetNodes(context.Background(), defaults.Namespace)
assert.NoError(t, err)
assert.Len(t, found, 2)
}, 10*time.Second, 100*time.Millisecond)

_, err = runCommand(t, instance, []string{"echo hello"}, clientConfig, 1)

// check if we were able to exec the command or not
Expand Down

0 comments on commit 702e7a1

Please sign in to comment.