mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +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
@@ -18,11 +18,6 @@ jobs:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Xcode version
|
|
||||||
uses: maxim-lobanov/setup-xcode@v1.4.1
|
|
||||||
with:
|
|
||||||
xcode-version: '13.4'
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|||||||
+4
-2
@@ -42,7 +42,8 @@ struct MockSessionVerificationControllerProxy: SessionVerificationControllerProx
|
|||||||
}
|
}
|
||||||
|
|
||||||
func declineVerification() async -> Result<Void, SessionVerificationControllerProxyError> {
|
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)
|
callbacks.send(.cancelled)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +51,8 @@ struct MockSessionVerificationControllerProxy: SessionVerificationControllerProx
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cancelVerification() async -> Result<Void, SessionVerificationControllerProxyError> {
|
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)
|
callbacks.send(.cancelled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
require 'yaml'
|
require 'yaml'
|
||||||
require_relative 'changelog'
|
require_relative 'changelog'
|
||||||
|
|
||||||
|
before_all do
|
||||||
|
xcversion(version: "~> 13.4")
|
||||||
|
end
|
||||||
|
|
||||||
lane :alpha do
|
lane :alpha do
|
||||||
|
|
||||||
config_xcodegen_alpha()
|
config_xcodegen_alpha()
|
||||||
|
|||||||
Reference in New Issue
Block a user