Skip to content

Commit 2b4dc1d

Browse files
committed
Improve test messages
1 parent 39b49e4 commit 2b4dc1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/template/load_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestLoadTemplate(t *testing.T) {
134134
t.Errorf("%v", err)
135135
}
136136
if !cmp.Equal(got, tt.want) {
137-
t.Errorf("Wrong template received, got=\n%s", cmp.Diff(tt.want, got))
137+
t.Errorf("Wrong template received, diff:\n%s", cmp.Diff(tt.want, got))
138138
}
139139
})
140140
}
@@ -225,7 +225,7 @@ func TestLoadDashboard(t *testing.T) {
225225
}
226226

227227
if !cmp.Equal(got, tt.want) {
228-
t.Errorf("Wrong template received, got=\n%s", cmp.Diff(tt.want, got))
228+
t.Errorf("Wrong template received, diff:\n%s", cmp.Diff(tt.want, got))
229229
}
230230
})
231231
}

0 commit comments

Comments
 (0)