Skip to content

Commit 26c215b

Browse files
committed
Refactor test
1 parent 4d3bc72 commit 26c215b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/end2end_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3926,9 +3926,8 @@ func (s) TestClientInvalidStreamID(t *testing.T) {
39263926
st.greet()
39273927
st.writeHeadersGRPC(2, "/grpc.testing.TestService/StreamingInputCall", true)
39283928
goAwayFrame := st.wantGoAway(http2.ErrCodeProtocol)
3929-
got := string(goAwayFrame.DebugData())
39303929
want := "received an illegal stream id: 2. headers frame: [FrameHeader HEADERS flags=END_STREAM|END_HEADERS stream=2 len=60]"
3931-
if got != want {
3930+
if got := string(goAwayFrame.DebugData()); got != want {
39323931
t.Fatalf("Error received: %v, want: %v", got, want)
39333932
}
39343933
}

0 commit comments

Comments
 (0)