Skip to content

Commit 399b90c

Browse files
committed
fix unit test
1 parent 8581603 commit 399b90c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/statsd/parser_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestParseDatagram(t *testing.T) {
110110
}
111111
for i, e := range ch.events {
112112
if e.DateHappened <= 0 {
113-
t.Errorf("%q: DateHappened should be positive", e)
113+
t.Errorf("%v: DateHappened should be positive", e)
114114
}
115115
ch.events[i].DateHappened = 0
116116
}
@@ -217,7 +217,7 @@ func TestParseDatagramIgnoreHost(t *testing.T) {
217217
metrics, _, _ := mr.handleDatagram(context.Background(), lex(), 0, fakeIP, []byte(datagram))
218218
for i, e := range ch.events {
219219
if e.DateHappened <= 0 {
220-
t.Errorf("%q: DateHappened should be positive", e)
220+
t.Errorf("%v: DateHappened should be positive", e)
221221
}
222222
ch.events[i].DateHappened = 0
223223
}

0 commit comments

Comments
 (0)