Skip to content

Commit

Permalink
use GetSubscriptions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Mar 4, 2024
1 parent cb8e215 commit 39f351b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subscriptions_transport_ws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func TestSubscription_closeThenRun(t *testing.T) {
bulkSubscribe()

go func() {
length := subscriptionClient.getContext().GetSubscriptionsLength(nil)
length := len(subscriptionClient.GetSubscriptions())
if length != 2 {
t.Errorf("unexpected subscription client. got: %d, want: 2", length)
return
Expand All @@ -220,7 +220,7 @@ func TestSubscription_closeThenRun(t *testing.T) {
}()

time.Sleep(3 * time.Second)
length := subscriptionClient.getContext().GetSubscriptionsLength(nil)
length := len(subscriptionClient.GetSubscriptions())
if length != 2 {
t.Fatalf("unexpected subscription client after restart. got: %d, want: 2, subscriptions: %+v", length, subscriptionClient.context.subscriptions)
}
Expand Down

0 comments on commit 39f351b

Please sign in to comment.