mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
rpc: fix flaky test TestServerWebsocketReadLimit (#32889)
This commit is contained in:
parent
c42f8f0574
commit
d2234e829e
1 changed files with 2 additions and 1 deletions
|
|
@ -273,7 +273,8 @@ func TestServerWebsocketReadLimit(t *testing.T) {
|
||||||
}
|
}
|
||||||
} else if !errors.Is(err, websocket.ErrReadLimit) &&
|
} else if !errors.Is(err, websocket.ErrReadLimit) &&
|
||||||
!strings.Contains(strings.ToLower(err.Error()), "1009") &&
|
!strings.Contains(strings.ToLower(err.Error()), "1009") &&
|
||||||
!strings.Contains(strings.ToLower(err.Error()), "message too big") {
|
!strings.Contains(strings.ToLower(err.Error()), "message too big") &&
|
||||||
|
!strings.Contains(strings.ToLower(err.Error()), "connection reset by peer") {
|
||||||
// Not the error we expect from exceeding the message size limit.
|
// Not the error we expect from exceeding the message size limit.
|
||||||
t.Fatalf("unexpected error for read limit violation: %v", err)
|
t.Fatalf("unexpected error for read limit violation: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue