Skip to content

Commit

Permalink
Refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva committed Feb 9, 2024
1 parent 4d3bc72 commit 26c215b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/end2end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3926,9 +3926,8 @@ func (s) TestClientInvalidStreamID(t *testing.T) {
st.greet()
st.writeHeadersGRPC(2, "/grpc.testing.TestService/StreamingInputCall", true)
goAwayFrame := st.wantGoAway(http2.ErrCodeProtocol)
got := string(goAwayFrame.DebugData())
want := "received an illegal stream id: 2. headers frame: [FrameHeader HEADERS flags=END_STREAM|END_HEADERS stream=2 len=60]"
if got != want {
if got := string(goAwayFrame.DebugData()); got != want {
t.Fatalf("Error received: %v, want: %v", got, want)
}
}
Expand Down

0 comments on commit 26c215b

Please sign in to comment.