Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e89ba2

Browse files
authored
test(scaletest): fix websocket error during close (#11879)
Fixes#11735
1 parent8398b41 commit3e89ba2

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
iferr==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+
ifwebsocket.CloseStatus(err)==websocket.StatusPolicyViolation {
303+
return
304+
}
305+
299306
t.Error(err)
300307
}))
301308
defersrv.Close()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp