mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Attempt fixing session verification cancellation test flakiness and pinning the Xcode version on all workflows
This commit is contained in:
committed by
Stefan Ceriu
parent
e2af796d4a
commit
8f96dc3303
+4
-2
@@ -42,7 +42,8 @@ struct MockSessionVerificationControllerProxy: SessionVerificationControllerProx
|
||||
}
|
||||
|
||||
func declineVerification() async -> Result<Void, SessionVerificationControllerProxyError> {
|
||||
DispatchQueue.global(qos: .background).asyncAfter(deadline: .now() + 2.0) {
|
||||
Task.detached {
|
||||
try await Task.sleep(nanoseconds: 2_000_000_000)
|
||||
callbacks.send(.cancelled)
|
||||
}
|
||||
|
||||
@@ -50,7 +51,8 @@ struct MockSessionVerificationControllerProxy: SessionVerificationControllerProx
|
||||
}
|
||||
|
||||
func cancelVerification() async -> Result<Void, SessionVerificationControllerProxyError> {
|
||||
DispatchQueue.global(qos: .background).asyncAfter(deadline: .now() + 2.0) {
|
||||
Task.detached {
|
||||
try await Task.sleep(nanoseconds: 2_000_000_000)
|
||||
callbacks.send(.cancelled)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user