Skip to content

Commit 6794fe5

Browse files
committed
Fail tests that have errors, don't just log the errors
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 26aaea9 commit 6794fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/epp/datastore/datastore_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ func TestPods(t *testing.T) {
424424
gotPods = append(gotPods, pod)
425425
}
426426
if !cmp.Equal(gotPods, test.wantPods, cmpopts.SortSlices(func(a, b *corev1.Pod) bool { return a.Name < b.Name })) {
427-
t.Logf("got (%v) != want (%v);", gotPods, test.wantPods)
427+
t.Errorf("got (%v) != want (%v);", gotPods, test.wantPods)
428428
}
429429
})
430430
}

0 commit comments

Comments
 (0)