From b6523745d93ece228fbfe9458f0d802e3cc76f65 Mon Sep 17 00:00:00 2001 From: Artur Guseinov Date: Thu, 23 Jun 2022 17:22:56 +0500 Subject: [PATCH] Task priority hight --- Example/IntegrationTests/Sign/SignClientTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/IntegrationTests/Sign/SignClientTests.swift b/Example/IntegrationTests/Sign/SignClientTests.swift index 5010ff067..e6b5b8a01 100644 --- a/Example/IntegrationTests/Sign/SignClientTests.swift +++ b/Example/IntegrationTests/Sign/SignClientTests.swift @@ -5,7 +5,7 @@ import WalletConnectUtils final class SignClientTests: XCTestCase { - let defaultTimeout: TimeInterval = 5.0 + let defaultTimeout: TimeInterval = 5 var proposer: ClientDelegate! var responder: ClientDelegate! @@ -62,7 +62,7 @@ final class SignClientTests: XCTestCase { let sessionNamespaces = SessionNamespace.make(toRespond: requiredNamespaces) wallet.onSessionProposal = { proposal in - Task { + Task(priority: .high) { do { try await wallet.client.approve(proposalId: proposal.id, namespaces: sessionNamespaces) } catch { XCTFail("\(error)") } } } @@ -90,7 +90,7 @@ final class SignClientTests: XCTestCase { try await wallet.client.pair(uri: uri!) wallet.onSessionProposal = { proposal in - Task { + Task(priority: .high) { do { try await wallet.client.reject(proposalId: proposal.id, reason: .disapprovedChains) // TODO: Review reason store.rejectedProposal = proposal