Skip to content

Commit

Permalink
Use #fileID/#filePath instead of #file (#184)
Browse files Browse the repository at this point in the history
Motivation:

Modifications:

Changed #file to #filePath or #fileID depending on situation
  • Loading branch information
carolinacass authored Oct 28, 2022
1 parent d373eaf commit 91dd2d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/NIOExtrasTests/WritePCAPHandlerTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private class PromiseOrderer {
self.eventLoop = eventLoop
}

func makePromise(file: StaticString = #file, line: UInt = #line) -> EventLoopPromise<Void> {
func makePromise(file: StaticString = #fileID, line: UInt = #line) -> EventLoopPromise<Void> {
let promise = eventLoop.makePromise(of: Void.self, file: (file), line: line)
appendPromise(promise)
return promise
Expand Down

0 comments on commit 91dd2d6

Please sign in to comment.