Attempt fixing session verification cancellation test flakiness and pinning the Xcode version on all workflows

This commit is contained in:
Stefan Ceriu
2022-10-14 13:55:32 +03:00
committed by Stefan Ceriu
parent e2af796d4a
commit 8f96dc3303
3 changed files with 8 additions and 7 deletions
@@ -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)
}