Skip to content

Commit bb51a2b

Browse files
wait for the subscription to restart
1 parent 86a53b0 commit bb51a2b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tests/ApolloWebsocketTests/StarWarsSubscriptionTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ class StarWarsSubscriptionTests: XCTestCase {
467467
self.reconnectedExpectation = self.expectation(description: "Web socket reconnected")
468468
webSocketTransport.resumeWebSocketConnection()
469469
self.wait(for: [self.reconnectedExpectation!], timeout: 10)
470+
self.waitForSubscriptionsToStart()
470471

471472
// Now that we've reconnected, this should go through to the same subscription.
472473
sendReview()

0 commit comments

Comments
 (0)