Skip to content

Commit

Permalink
pillar/watcher: enhance test error output
Browse files Browse the repository at this point in the history
to hopefully fix flaky test in the future

Signed-off-by: Christoph Ostarek <[email protected]>
  • Loading branch information
christoph-zededa committed Feb 21, 2025
1 parent 366a814 commit 4691a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pillar/cmd/watcher/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func TestGoroutinesMonitorUpdateParamsKeepStatsDecrease(t *testing.T) {
// Check if the log output contains the expected messages
for _, expectedMsg := range expectedMsgs {
if !strings.Contains(string(output), expectedMsg) {
t.Errorf("Expected log output to contain '%s'", expectedMsg)
t.Errorf("Expected log output to contain '%s', but got '%s'", expectedMsg, output)
}
}
}
Expand Down

0 comments on commit 4691a87

Please sign in to comment.