From 7a865c2a798c1a484855c9d282420aadcadb1c66 Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Thu, 24 Oct 2024 10:21:58 -0400 Subject: [PATCH] Fix flay TestIntegrations/ProxyHostKeyCheck --- integration/integration_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration/integration_test.go b/integration/integration_test.go index 5a24c55c71054..8e27754ca200c 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -4908,6 +4908,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