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
2 changes: 1 addition & 1 deletion mac-app/Sources/CloudMachineCore/SMBProbe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public enum SMBProbe {
}

/// One connection: connect, send, read the first 8 bytes - all within `timeout`.
public static func liveExchange(
@Sendable public static func liveExchange(
host: String, port: UInt16, request: [UInt8], timeout: TimeInterval
) -> Exchange {
let deadline = Date().addingTimeInterval(timeout)
Expand Down
5 changes: 3 additions & 2 deletions mac-app/Tests/CloudMachineAppTests/HealthAlertTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ final class HealthAlertTests: XCTestCase {
_ report: BackupHealth.Report, now: Date = Date(),
deliver: @escaping @Sendable (String, String) async -> Bool
) async -> Bool {
await HealthAlert.report(
report, now: now, stateFile: stateFile, deliver: deliver, log: log.write)
let captured = log!
return await HealthAlert.report(
report, now: now, stateFile: stateFile, deliver: deliver, log: { captured.write($0) })
}

// MARK: - Finding 3: tests do not write to the production log
Expand Down
Loading