Skip to content

Commit

Permalink
Update tests, explicit ignore WriteString return values
Browse files Browse the repository at this point in the history
  • Loading branch information
roeldev committed Feb 11, 2024
1 parent 0adbefa commit cbe4998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bytes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestBytesBufferPool_Get(t *testing.T) {
assert.Equal(t, 0, b.Cap())

const str = "dit is een hele lang test string met heel veel willekeurige woorden die nergens op slaan zolang de buffer maar groeit"
b.WriteString(str)
_, _ = b.WriteString(str)
assert.Equal(t, str, b.String())

p.Put(b)
Expand Down
2 changes: 1 addition & 1 deletion string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestToStringWriter(t *testing.T) {
var writer writerOnly
sw := ToStringWriter(&writer)
assert.NotSame(t, &writer, sw)
sw.WriteString("test")
_, _ = sw.WriteString("test")
assert.Equal(t, "test", string(writer.buf))
})
}
Expand Down

0 comments on commit cbe4998

Please sign in to comment.