Skip to content

Commit 3cfc334

Browse files
authored
rpc: fix flaky test TestServerWebsocketReadLimit (#32889)
1 parent f6064f3 commit 3cfc334

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rpc/server_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ func TestServerWebsocketReadLimit(t *testing.T) {
273273
}
274274
} else if !errors.Is(err, websocket.ErrReadLimit) &&
275275
!strings.Contains(strings.ToLower(err.Error()), "1009") &&
276-
!strings.Contains(strings.ToLower(err.Error()), "message too big") {
276+
!strings.Contains(strings.ToLower(err.Error()), "message too big") &&
277+
!strings.Contains(strings.ToLower(err.Error()), "connection reset by peer") {
277278
// Not the error we expect from exceeding the message size limit.
278279
t.Fatalf("unexpected error for read limit violation: %v", err)
279280
}

0 commit comments

Comments
 (0)