Skip to content

Commit 3e89ba2

Browse files
authored
test(scaletest): fix websocket error during close (#11879)
Fixes #11735
1 parent 8398b41 commit 3e89ba2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scaletest/workspacetraffic/run_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ func TestRun(t *testing.T) {
296296
if err == nil || errors.Is(err, io.EOF) {
297297
return
298298
}
299+
// Ignore policy violations, we expect these, e.g.:
300+
//
301+
// failed to get reader: received close frame: status = StatusPolicyViolation and reason = "timed out"
302+
if websocket.CloseStatus(err) == websocket.StatusPolicyViolation {
303+
return
304+
}
305+
299306
t.Error(err)
300307
}))
301308
defer srv.Close()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy