2
0

Fix tests for iobufpool optimization

This commit is contained in:
Jack Christensen
2023-01-28 09:30:12 -06:00
parent eee854fb06
commit 7019ed1edf
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func TestChunkReaderNextDoesNotReadIfAlreadyBuffered(t *testing.T) {
t.Fatalf("Expected read bytes to be %v, but they were %v", src[2:4], n2)
}
if bytes.Compare(r.buf[:len(src)], src) != 0 {
if bytes.Compare((*r.buf)[:len(src)], src) != 0 {
t.Fatalf("Expected r.buf to be %v, but it was %v", src, r.buf)
}