Skip to content

Commit

Permalink
fix(installer): Wait on installer to avoid flaky test (#33295)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy authored Jan 23, 2025
1 parent 2759238 commit f1383a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/new-e2e/tests/installer/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (h *Host) WaitForUnitActivating(t *testing.T, units ...string) {
h.t.Logf("installer exp logs:\n%s", h.remote.MustExecute("sudo journalctl -xeu datadog-installer-exp"))
h.t.Logf("unit %s logs:\n%s", unit, h.remote.MustExecute("sudo journalctl -xeu "+unit))
}
require.NoError(t, err, "unit %s did not become activating")
require.NoError(t, err, "unit %s did not become activating", unit)
}
}

Expand Down
2 changes: 2 additions & 0 deletions test/new-e2e/tests/installer/unix/upgrade_scenario_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ func (s *upgradeScenarioSuite) TestInstallerAgentFailure() {
s.stopExperiment(datadogInstaller) // Can't check error
s.assertSuccessfulInstallerStopExperiment(timestamp)

s.host.WaitForUnitActive(installerUnit)

// Retry the golden path to check if everything fine
s.setCatalog(testCatalog)
s.executeInstallerGoldenPath()
Expand Down

0 comments on commit f1383a3

Please sign in to comment.