Skip to content

Commit

Permalink
fix websocket tests
Browse files Browse the repository at this point in the history
  • Loading branch information
netr committed Nov 28, 2023
1 parent c7badb3 commit fbcc5f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func TestClient_Close(t *testing.T) {
}

cl, err := NewWsClient(WsClientConfig{
ApiKey: "badkey",
SecretKey: "badsecret",
Url: "https://badurl.com",
ReadChannel: chRead,
WsChannels: []WebsocketChannel{},
Expand Down Expand Up @@ -78,6 +80,8 @@ func TestClient_Reconnecting(t *testing.T) {

chRead := make(chan []byte)
cl, err := NewWsClient(WsClientConfig{
ApiKey: "badkey",
SecretKey: "badsecret",
Url: makeWsProto(s.URL),
ReadChannel: chRead,
WsChannels: []WebsocketChannel{},
Expand Down Expand Up @@ -125,6 +129,8 @@ func TestWsClient_Backoff_ShouldNotTriggerRecon(t *testing.T) {

chRead := make(chan []byte)
cl, err := NewWsClient(WsClientConfig{
ApiKey: "badkey",
SecretKey: "badsecret",
Url: makeWsProto(s.URL),
ReadChannel: chRead,
WsChannels: []WebsocketChannel{},
Expand Down Expand Up @@ -178,6 +184,8 @@ func TestWsClient_Backoff_ShouldTriggerRecon(t *testing.T) {

chRead := make(chan []byte)
cl, err := NewWsClient(WsClientConfig{
ApiKey: "badkey",
SecretKey: "badsecret",
Url: makeWsProto(s.URL),
ReadChannel: chRead,
WsChannels: []WebsocketChannel{},
Expand Down

0 comments on commit fbcc5f4

Please sign in to comment.