diff --git a/internal/pkg/agent/application/actions/handlers/handler_action_upgrade_test.go b/internal/pkg/agent/application/actions/handlers/handler_action_upgrade_test.go index 3a930771cbd..fbea0dcc745 100644 --- a/internal/pkg/agent/application/actions/handlers/handler_action_upgrade_test.go +++ b/internal/pkg/agent/application/actions/handlers/handler_action_upgrade_test.go @@ -130,6 +130,7 @@ func TestUpgradeHandler(t *testing.T) { } func TestUpgradeHandlerSameVersion(t *testing.T) { + t.Skip("flaky test: https://github.com/elastic/elastic-agent/issues/5938") // Create a cancellable context that will shut down the coordinator after // the test. ctx, cancel := context.WithCancel(context.Background())