Skip to content

Commit

Permalink
objectupdate: sched: test: fix debug output
Browse files Browse the repository at this point in the history
Actually emit the compared YAMLs on error.

Signed-off-by: Francesco Romani <fromani@redhat.com>
  • Loading branch information
ffromani committed Jul 24, 2023
1 parent e945682 commit 38846c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/objectupdate/sched/fakeconfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ func yamlCompare(t *testing.T, testName, got, expected string) {
continue
}
t.Errorf("test %q diff %d: op=%s text=%q\n", testName, idx, hunk.Type.String(), hunk.Text)
diffCount++
}
if diffCount > 0 {
var err error
Expand Down

0 comments on commit 38846c4

Please sign in to comment.