1
0
mirror of https://github.com/golang/go synced 2024-11-17 03:04:44 -07:00

fix test error message

This commit is contained in:
Kévin Dunglas 2022-05-17 11:26:06 +02:00
parent 8d84678f59
commit 06d749d345
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -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])
}
}
}