Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Sep 18, 2024
1 parent ca6f23e commit 54dd72c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ final class AutomaticSocketConnectionHandlerTests: XCTestCase {
let defaults = RuntimeKeyValueStorage()
let logger = ConsoleLoggerMock()
let keychainStorageMock = DispatcherKeychainStorageMock()
let clientIdStorage = ClientIdStorage(defaults: defaults, keychain: keychainStorageMock, logger: logger)

backgroundTaskRegistrar = BackgroundTaskRegistrarMock()
subscriptionsTracker = SubscriptionsTrackerMock()
Expand Down Expand Up @@ -120,7 +119,7 @@ final class AutomaticSocketConnectionHandlerTests: XCTestCase {
webSocketSession.disconnect()
await sut.handleDisconnection()

wait(for: [expectation], timeout: 5.0)
await fulfillment(of: [expectation], timeout: 5.0)

Check failure on line 122 in Tests/RelayerTests/AutomaticSocketConnectionHandlerTests.swift

View workflow job for this annotation

GitHub Actions / test (unit-tests)

testReconnectOnDisconnectForeground, Asynchronous wait failed: Exceeded timeout of 5 seconds, with unfulfilled expectations: "WebSocket should reconnect on disconnection in foreground".
XCTAssertTrue(webSocketSession.isConnected)

Check failure on line 123 in Tests/RelayerTests/AutomaticSocketConnectionHandlerTests.swift

View workflow job for this annotation

GitHub Actions / test (unit-tests)

testReconnectOnDisconnectForeground, XCTAssertTrue failed
}

Expand Down

0 comments on commit 54dd72c

Please sign in to comment.