diff --git a/Tests/LoggingTests/LoggingTest.swift b/Tests/LoggingTests/LoggingTest.swift index 2797c1f7..87b5e778 100644 --- a/Tests/LoggingTests/LoggingTest.swift +++ b/Tests/LoggingTests/LoggingTest.swift @@ -152,8 +152,8 @@ class LoggingTest: XCTestCase { "lazy": .stringConvertible(LazyMetadataBox { "rendered-at-first-use" })]) } - private func dontEvaluateThisString(file: StaticString = (#file), line: UInt = #line) -> Logger.Message { - XCTFail("should not have been evaluated", file: file, line: line) + private func dontEvaluateThisString(file: StaticString = #file, line: UInt = #line) -> Logger.Message { + XCTFail("should not have been evaluated", file: (file), line: line) return "should not have been evaluated" } diff --git a/Tests/LoggingTests/TestLogger.swift b/Tests/LoggingTests/TestLogger.swift index e41ba05c..bf8f543c 100644 --- a/Tests/LoggingTests/TestLogger.swift +++ b/Tests/LoggingTests/TestLogger.swift @@ -176,19 +176,21 @@ extension History { func assertExist(level: Logger.Level, message: String, metadata: Logger.Metadata? = nil, - file: StaticString = (#file), + file: StaticString = #file, line: UInt = #line) { let entry = self.find(level: level, message: message, metadata: metadata) - XCTAssertNotNil(entry, "entry not found: \(level), \(String(describing: metadata)), \(message) ", file: file, line: line) + XCTAssertNotNil(entry, "entry not found: \(level), \(String(describing: metadata)), \(message) ", + file: (file), line: line) } func assertNotExist(level: Logger.Level, message: String, metadata: Logger.Metadata? = nil, - file: StaticString = (#file), + file: StaticString = #file, line: UInt = #line) { let entry = self.find(level: level, message: message, metadata: metadata) - XCTAssertNil(entry, "entry was found: \(level), \(String(describing: metadata)), \(message)", file: file, line: line) + XCTAssertNil(entry, "entry was found: \(level), \(String(describing: metadata)), \(message)", + file: (file), line: line) } func find(level: Logger.Level, message: String, metadata: Logger.Metadata? = nil) -> LogEntry? {