diff --git a/Tests/NIOExtrasTests/WritePCAPHandlerTest.swift b/Tests/NIOExtrasTests/WritePCAPHandlerTest.swift index fafd04f7..ab873841 100644 --- a/Tests/NIOExtrasTests/WritePCAPHandlerTest.swift +++ b/Tests/NIOExtrasTests/WritePCAPHandlerTest.swift @@ -62,7 +62,7 @@ class WritePCAPHandlerTest: XCTestCase { func assertEqual(expectedAddress: SocketAddress?, actualIPv4Address: in_addr, actualPort: UInt16, - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line) { guard let port = expectedAddress?.port else { XCTFail("expected address nil or has no port", file: (file), line: line) @@ -83,7 +83,7 @@ class WritePCAPHandlerTest: XCTestCase { func assertEqual(expectedAddress: SocketAddress?, actualIPv6Address: in6_addr, actualPort: UInt16, - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line) { guard let port = expectedAddress?.port else { XCTFail("expected address nil or has no port", file: (file), line: line) diff --git a/Tests/NIOHTTPCompressionTests/HTTPResponseCompressorTest.swift b/Tests/NIOHTTPCompressionTests/HTTPResponseCompressorTest.swift index 97c03053..01c93af7 100644 --- a/Tests/NIOHTTPCompressionTests/HTTPResponseCompressorTest.swift +++ b/Tests/NIOHTTPCompressionTests/HTTPResponseCompressorTest.swift @@ -29,7 +29,7 @@ private class PromiseOrderer { self.eventLoop = eventLoop } - func makePromise(file: StaticString = #file, line: UInt = #line) -> EventLoopPromise { + func makePromise(file: StaticString = #fileID, line: UInt = #line) -> EventLoopPromise { let promise = eventLoop.makePromise(of: Void.self, file: (file), line: line) appendPromise(promise) return promise