From dc16f760d8a4d79dbbbf9d2f90114e28d5541f37 Mon Sep 17 00:00:00 2001 From: rosstimothy <39066650+rosstimothy@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:21:39 +0000 Subject: [PATCH] Fix flay TestIntegrations/ProxyHostKeyCheck (#47938) --- integration/integration_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration/integration_test.go b/integration/integration_test.go index 0d20d726cef75..745071ed3c020 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -4970,6 +4970,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