diff --git a/testing/integration/agent_long_running_leak_test.go b/testing/integration/agent_long_running_leak_test.go index f3862665771..b5c8a05108b 100644 --- a/testing/integration/agent_long_running_leak_test.go +++ b/testing/integration/agent_long_running_leak_test.go @@ -231,6 +231,10 @@ func (runner *ExtendedRunner) CheckHealthAtStartup(ctx context.Context) { if !foundSystem && strings.Contains(v.UnitID, systemMatch) { foundSystem = true } + runner.T().Logf("unit state: %s", v.Message) + if v.State != int(cproto.State_HEALTHY) { + allHealthy = false + } } runner.T().Logf("component state: %s", comp.Message) if comp.State != int(cproto.State_HEALTHY) {