Skip to content

Commit

Permalink
fix test error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 17, 2022
1 parent 229d7b1 commit 65e065a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/http/clientserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1651,12 +1651,12 @@ func testEarlyHintsRequest(t *testing.T, h2 bool) {
t.Helper()

if len(expected) != len(got) {
t.Errorf("Expected %d link headers; got %d", len(expected), len(got))
t.Errorf("got %d expected %d", len(got), len(expected))
}

for i := range expected {
if expected[i] != got[i] {
t.Errorf("Expected %q link header; got %q", expected[i], got[i])
t.Errorf("got %q expected %q", got[i], expected[i])
}
}
}
Expand Down

0 comments on commit 65e065a

Please sign in to comment.