Skip to content

Commit

Permalink
fixup! Websocket: Make WebsocketNotEnabled a real error
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Feb 16, 2024
1 parent 4211237 commit e7d10cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exchanges/stream/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ func TestConnectionMessageErrors(t *testing.T) {

ws.TrafficAlert <- struct{}{}

c := func(ta *assert.CollectT) {
c := func(tb *assert.CollectT) {
select {
case v := <-ws.ToRoutine:
switch err := v.(type) {
case *websocket.CloseError:
assert.Equal(t, "SpecialText", err.Text, "Should get correct Close Error")
assert.Equal(tb, "SpecialText", err.Text, "Should get correct Close Error")
case error:
assert.ErrorIs(t, err, errDastardlyReason, "Should get the correct error")
assert.ErrorIs(tb, err, errDastardlyReason, "Should get the correct error")
}
default:
}
Expand Down

0 comments on commit e7d10cd

Please sign in to comment.