From d3345ffc2aec4f38f0dc20357fc16d89e69ee5c9 Mon Sep 17 00:00:00 2001 From: carolinacass <67160898+carolinacass@users.noreply.github.com> Date: Mon, 31 Oct 2022 11:59:12 +0000 Subject: [PATCH] Use #fileID/#filePath instead of #file (#164) Motivation: #fileID introduced in Swift 5.3, so no longer need to use #file anywhere Modifications: Changed #file to #filePath or #fileID depending on situation --- Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift b/Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift index bd0ad52..5acb7d9 100644 --- a/Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift +++ b/Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift @@ -21,7 +21,7 @@ import Network func assertNoThrowWithValue(_ body: @autoclosure () throws -> T, defaultValue: T? = nil, message: String? = nil, - file: StaticString = #file, line: UInt = #line) throws -> T { + file: StaticString = #filePath, line: UInt = #line) throws -> T { do { return try body() } catch {