1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-20 19:29:10 +00:00

use t.Log instead of fmt.PrintLn

This commit is contained in:
Alex Conlin-Oakley 2020-02-17 16:42:27 +00:00
parent 62cf1bc2a4
commit 909636703d

View file

@ -67,12 +67,12 @@ func TestStatefulSetLabelingAndAnnotations(t *testing.T) {
require.NoError(t, err)
if !reflect.DeepEqual(labels, sset.Labels) {
fmt.Println(pretty.Compare(labels, sset.Labels))
t.Log(pretty.Compare(labels, sset.Labels))
t.Fatal("Labels are not properly being propagated to the StatefulSet")
}
if !reflect.DeepEqual(expectedAnnotations, sset.Annotations) {
fmt.Println(pretty.Compare(expectedAnnotations, sset.Annotations))
t.Log(pretty.Compare(expectedAnnotations, sset.Annotations))
t.Fatal("Annotations are not properly being propagated to the StatefulSet")
}
}