mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Attempt fix for unreliable tests
This commit is contained in:
committed by
Stefan Ceriu
parent
2f69c99782
commit
b0bbbfc1d7
+4
-2
@@ -16,7 +16,8 @@ struct MockSessionVerificationControllerProxy: SessionVerificationControllerProx
|
||||
var isVerified = false
|
||||
|
||||
func requestVerification() 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(.receivedVerificationData(Self.emojis))
|
||||
}
|
||||
|
||||
@@ -24,7 +25,8 @@ struct MockSessionVerificationControllerProxy: SessionVerificationControllerProx
|
||||
}
|
||||
|
||||
func approveVerification() 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(.finished)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user