Skip to content

Commit 292f6bd

Browse files
authored
Fix flaky nightly CI: bump main-actor blocking threshold from 0.2 to 0.3 (#185)
testStartRecordingDoesNotBlockMainActorDuringAudioStart was failing intermittently on CI runners where initial MainActor work (guard checks, state mutation, cursor overlay) took 204ms — just over the 0.2s limit. The mock audio engine's startRecordingDelay is 0.3, so the test intent is to verify the main actor doesn't synchronously wait for the full audio start duration. Matching the threshold to the mock delay (0.3) preserves the assertion while eliminating the timing flake.
1 parent 12d736c commit 292f6bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/VocaMacTests/AppStateRecordingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class AppStateRecordingTests: XCTestCase {
4646
await Task.yield()
4747
try await Task.sleep(nanoseconds: 50_000_000)
4848

49-
XCTAssertLessThan(Date().timeIntervalSince(start), 0.2,
49+
XCTAssertLessThan(Date().timeIntervalSince(start), 0.3,
5050
"Core Audio startup should not block the main actor")
5151

5252
await task.value

0 commit comments

Comments
 (0)