Skip to content

Commit 71b7ee7

Browse files
committed
Check if the err is nil or not
1 parent 4300406 commit 71b7ee7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/end2end_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,14 +3912,17 @@ func testClientInvalidStreamID(t *testing.T, e env) {
39123912
te.withServerTester(func(st *serverTester) {
39133913
st.writeHeadersGRPC(2, "/grpc.testing.TestService/StreamingInputCall", true)
39143914
_, err := st.fr.ReadFrame()
3915-
if err != nil {
3916-
fmt.Println(err)
3915+
if err == nil {
3916+
t.Fatalf("Error expected when Client StreamID is even %v", err)
39173917
}
39183918
})
39193919
}
39203920

39213921
func (s) TestClientInvalidStreamID(t *testing.T) {
39223922
for _, e := range listTestEnv() {
3923+
if e.httpHandler {
3924+
continue
3925+
}
39233926
testClientInvalidStreamID(t, e)
39243927
}
39253928
}

0 commit comments

Comments
 (0)