Skip to content

Commit 4eb1f2a

Browse files
Don't cancel the subscription until after we've waited for it 🤦‍♀️ 🤦‍♀️
1 parent d4fee17 commit 4eb1f2a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tests/ApolloWebsocketTests/StarWarsSubscriptionTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,10 @@ class StarWarsSubscriptionTests: XCTestCase {
471471
// Now that we've reconnected, this should go through to the same subscription.
472472
sendReview()
473473

474-
// Cancel subscription so it doesn't keep receiving from other tests.
475-
sub.cancel()
476-
477474
self.wait(for: [subscriptionExpectation], timeout: 10)
475+
476+
// Cancel subscription so it doesn't keep receiving from other tests.
477+
sub.cancel()
478478
}
479479
}
480480

0 commit comments

Comments
 (0)