mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-31 03:27:49 +08:00
[chore] fix race in TwoClustersTunnel (#61474)
This test previously passed in CI, relying on slower machines and fails locally on both Mac and in buildbox on macbook pro m3 with: ``` cluster site-A is offline ``` Adding the wait resolves the issue.
This commit is contained in:
@@ -2463,6 +2463,10 @@ func twoClustersTunnel(t *testing.T, suite *integrationTestSuite, now time.Time,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
tc.Stdout = &outputB
|
||||
|
||||
// Wait for the target host to appear in the inventory before connecting to it.
|
||||
b.WaitForNodeCount(ctx, b.Secrets.SiteName, 1)
|
||||
|
||||
err = tc.SSH(ctx, cmd)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, outputA.String(), outputB.String())
|
||||
|
||||
Reference in New Issue
Block a user