Skip to content

Commit 53def59

Browse files
committed
Fix test logging: writer proper strings rather than raw bytes
1 parent 2e4ba59 commit 53def59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/messagebirdtest/test_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type testWriter struct {
1717

1818
// Write logs the provided buffer to the current test's error log.
1919
func (w testWriter) Write(p []byte) (int, error) {
20-
w.t.Log(p)
20+
w.t.Logf("%s", p)
2121

2222
return len(p), nil
2323
}

0 commit comments

Comments
 (0)