mirror of https://github.com/coder/coder.git
test(scaletest): fix websocket error during close (#11879)
Fixes #11735
This commit is contained in:
parent
8398b4188b
commit
3e89ba23e5
|
@ -296,6 +296,13 @@ func TestRun(t *testing.T) {
|
|||
if err == nil || errors.Is(err, io.EOF) {
|
||||
return
|
||||
}
|
||||
// Ignore policy violations, we expect these, e.g.:
|
||||
//
|
||||
// failed to get reader: received close frame: status = StatusPolicyViolation and reason = "timed out"
|
||||
if websocket.CloseStatus(err) == websocket.StatusPolicyViolation {
|
||||
return
|
||||
}
|
||||
|
||||
t.Error(err)
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
|
Loading…
Reference in New Issue