Skip to content

Commit 621bbc6

Browse files
mergify[bot]VihasMakwanapierrehilbert
authored
chore: make sure all unit are healthy as well (#5384) (#5424)
(cherry picked from commit d277380) Co-authored-by: VihasMakwana <[email protected]> Co-authored-by: Pierre HILBERT <[email protected]>
1 parent 5d2a545 commit 621bbc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/integration/agent_long_running_leak_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ func (runner *ExtendedRunner) CheckHealthAtStartup(ctx context.Context) {
231231
if !foundSystem && strings.Contains(v.UnitID, systemMatch) {
232232
foundSystem = true
233233
}
234+
runner.T().Logf("unit state: %s", v.Message)
235+
if v.State != int(cproto.State_HEALTHY) {
236+
allHealthy = false
237+
}
234238
}
235239
runner.T().Logf("component state: %s", comp.Message)
236240
if comp.State != int(cproto.State_HEALTHY) {

0 commit comments

Comments
 (0)