fix(ci): align toolchains and isolate platform tests

This commit is contained in:
edde746
2026-07-24 10:06:50 +02:00
parent 6c03094ef1
commit 40833e65ec
17 changed files with 170 additions and 147 deletions
+10 -3
View File
@@ -194,9 +194,16 @@ final class MpvPlayerContractTests: XCTestCase {
let core = MpvPlayerCoreBase()
let delegate = RecordingLifecycleDelegate()
core.delegate = delegate
core.dispatchDelegateEvent(name: "file-loaded", data: nil)
core.dispatchDelegateProperty(name: "time-pos", value: 1.0)
XCTAssertTrue(core.beginDisposal())
let enqueueAndDispose = {
core.dispatchDelegateEvent(name: "file-loaded", data: nil)
core.dispatchDelegateProperty(name: "time-pos", value: 1.0)
XCTAssertTrue(core.beginDisposal())
}
if Thread.isMainThread {
enqueueAndDispose()
} else {
DispatchQueue.main.sync(execute: enqueueAndDispose)
}
let drained = expectation(description: "main delivery drained")
DispatchQueue.main.async { drained.fulfill() }