Skip to content

Commit

Permalink
chore: make sure all unit are healthy as well (#5384) (#5424)
Browse files Browse the repository at this point in the history
(cherry picked from commit d277380)

Co-authored-by: VihasMakwana <121151420+VihasMakwana@users.noreply.github.com>
Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 5d2a545 commit 621bbc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/integration/agent_long_running_leak_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 621bbc6

Please sign in to comment.