From 73a5371c2ae4c4c595ee53fcd49926407eab7285 Mon Sep 17 00:00:00 2001 From: Maximilian Pass <22845248+mpass99@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:32:03 +0200 Subject: [PATCH] Fix flaky TestNomadRunnerManager_Load unit test by giving Poseidon more time to cancel the execution before destroying the runner. --- internal/runner/nomad_manager_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/runner/nomad_manager_test.go b/internal/runner/nomad_manager_test.go index b356be6a..1caac853 100644 --- a/internal/runner/nomad_manager_test.go +++ b/internal/runner/nomad_manager_test.go @@ -656,6 +656,7 @@ func (s *MainTestSuite) TestNomadRunnerManager_Load() { } cancelExecution() + <-time.After(tests.ShortTimeout) err = r.Destroy(ErrLocalDestruction) s.Require().NoError(err) })