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

+7
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)