2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-11-09 19:21:52 +08:00

vet: buffer_test.go:65: possible formatting directive in Fatal call

This commit is contained in:
Tamir Duberstein 2016-01-07 10:08:10 -05:00 committed by Soheil Hassas Yeganeh
parent 345ba38c5f
commit 05566d752e

View File

@ -62,7 +62,7 @@ func TestBufferOffset(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if n != 2 { if n != 2 {
t.Fatal("cannot read the bytes: want=%d got=%d", 2, n) t.Fatalf("cannot read the bytes: want=%d got=%d", 2, n)
} }
if !bytes.Equal(readBytes, writeBytes[i*2:i*2+2]) { if !bytes.Equal(readBytes, writeBytes[i*2:i*2+2]) {
t.Fatalf("different bytes read: want=%s got=%s", t.Fatalf("different bytes read: want=%s got=%s",