Skip to content

Commit ace7078

Browse files
committed
Fix CI: use withLock instead of rawValue for cross-platform compatibility
1 parent 20f531f commit ace7078

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Testing/Events/Recorder/Event.HumanReadableOutputRecorder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,8 +940,8 @@ extension Event.HumanReadableOutputRecorder {
940940
/// - Returns: A formatted string containing the failure summary, or `nil`
941941
/// if there were no failures.
942942
func generateFailureSummary(options: Event.ConsoleOutputRecorder.Options) -> String? {
943-
let context = _context.rawValue
944-
let summary = Event.TestRunSummary(from: context.testData)
943+
let testData = _context.withLock { $0.testData }
944+
let summary = Event.TestRunSummary(from: testData)
945945
return summary.formatted(with: options)
946946
}
947947
}

0 commit comments

Comments
 (0)