Commit b7883d29 authored by Mikio Hara's avatar Mikio Hara Committed by Brad Fitzpatrick

http2: fix nits found by vet

Change-Id: I54dbe1ec47e6020d1d34b4f55f1e94c7800f8c12
Reviewed-on: https://go-review.googlesource.com/34874
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent ae05321a
...@@ -434,7 +434,7 @@ func TestPriorityFlowControl(t *testing.T) { ...@@ -434,7 +434,7 @@ func TestPriorityFlowControl(t *testing.T) {
t.Fatalf("Pop(%d)=false, want true", i) t.Fatalf("Pop(%d)=false, want true", i)
} }
if got, want := wr.DataSize(), 8; got != want { if got, want := wr.DataSize(), 8; got != want {
t.Fatalf("Pop(%d)=%d bytes, want %d bytes", got, want) t.Fatalf("Pop(%d)=%d bytes, want %d bytes", i, got, want)
} }
} }
} }
......
...@@ -30,7 +30,7 @@ func TestRandomScheduler(t *testing.T) { ...@@ -30,7 +30,7 @@ func TestRandomScheduler(t *testing.T) {
t.Fatalf("got %d frames, expected 6", len(order)) t.Fatalf("got %d frames, expected 6", len(order))
} }
if order[0].StreamID() != 0 || order[1].StreamID() != 0 { if order[0].StreamID() != 0 || order[1].StreamID() != 0 {
t.Fatalf("expected non-stream frames first", order[0], order[1]) t.Fatal("expected non-stream frames first", order[0], order[1])
} }
got := make(map[uint32]bool) got := make(map[uint32]bool)
for _, wr := range order[2:] { for _, wr := range order[2:] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment