Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

env:
TEST_TARGETS: "LiveKitCoreTests LiveKitObjCTests"
TEST_TIMEOUT_MINUTES: 10
TEST_TIMEOUT_MINUTES: 15
TEST_RETRY_ATTEMPTS: 3

jobs:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
platform: "tvOS Simulator,name=Apple TV,OS=26.0"

runs-on: ${{ matrix.os }}
timeout-minutes: 35
timeout-minutes: 60
defaults:
run:
shell: bash
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
-enableThreadSanitizer ${{ matrix.tsan == true && 'YES' || 'NO' }} \
APPLICATION_EXTENSION_API_ONLY=${{ matrix.extension-api-only == true && 'YES' || 'NO' }} \
-only-testing:$test \
-parallel-testing-enabled YES \
-parallel-testing-enabled NO \
| xcbeautify --renderer github-actions
then
echo "::error::Test failed: $test"
Expand Down
5 changes: 4 additions & 1 deletion Sources/LiveKit/Support/AudioMixRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ public class AudioMixRecorder: Loggable, @unchecked Sendable {
source.stop()
}
audioEngine.stop()
audioFile = nil

writeQueue.sync {
audioFile = nil
}
}

// MARK: - Source
Expand Down
1 change: 1 addition & 0 deletions Tests/LiveKitTestSupport/Assertions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public func XCTAssertThrowsErrorAsync(_ expression: @autoclosure () async throws
public extension LKTestCase {
func noLeaks(of instance: AnyObject & Sendable, file: StaticString = #filePath, line: UInt = #line) {
addTeardownBlock { [weak instance] in
try await Task.sleep(nanoseconds: NSEC_PER_SEC)
XCTAssertNil(instance, "Leaked object: \(String(describing: instance))", file: file, line: line)
}
}
Expand Down
Loading