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
-5
View File
@@ -18,11 +18,6 @@ jobs:
cancel-in-progress: true
steps:
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1.4.1
with:
xcode-version: '13.4'
- uses: actions/checkout@v3
with:
lfs: true
@@ -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)
}
+4
View File
@@ -1,6 +1,10 @@
require 'yaml'
require_relative 'changelog'
before_all do
xcversion(version: "~> 13.4")
end
lane :alpha do
config_xcodegen_alpha()