Skip to content

Commit

Permalink
Merge pull request #1059 from WalletConnect/hotfix/notify-tests-fix
Browse files Browse the repository at this point in the history
[Notify] testNotifyServerSubscribeAndNotifies fix
  • Loading branch information
flypaper0 authored Aug 25, 2023
2 parents a12094e + bb05f4c commit 6864d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Example/IntegrationTests/Push/NotifyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ final class NotifyTests: XCTestCase {
subscribeExpectation.fulfill()
subscription = subscriptions.first!
let notifier = Publisher()
sleep(1)
sleep(5)
Task(priority: .high) { try await notifier.notify(topic: subscriptions.first!.topic, account: subscriptions.first!.account, message: notifyMessage) }
}.store(in: &publishers)
walletNotifyClient.notifyMessagePublisher
Expand All @@ -169,7 +169,7 @@ final class NotifyTests: XCTestCase {
messageExpectation.fulfill()
}.store(in: &publishers)

wait(for: [subscribeExpectation, messageExpectation], timeout: 200)
wait(for: [subscribeExpectation, messageExpectation], timeout: InputConfig.defaultTimeout)
try await walletNotifyClient.deleteSubscription(topic: subscription.topic)
}

Expand Down

0 comments on commit 6864d95

Please sign in to comment.