Skip to content

Commit b5690c5

Browse files
committed
fix linux compilation issue
1 parent cc983e1 commit b5690c5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Tests/PostgresKitTests/PostgresKitTests.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import NIO
2-
import NIOPostgres
31
import PostgresKit
42
import SQLKitBenchmark
53
import XCTest
6-
import DatabaseKit
74

85
class PostgresKitTests: XCTestCase {
96
private var group: EventLoopGroup!
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import NIO
2-
import NIOPostgres
1+
import PostgresKit
32

43
extension PostgresConnection {
54
static func test(on eventLoop: EventLoop) -> EventLoopFuture<PostgresConnection> {
65
do {
76
let address: SocketAddress
87
#if os(Linux)
9-
address = try .newAddressResolving(host: "psql", port: 5432)
8+
address = try .makeAddressResolvingHost("psql", port: 5432)
109
#else
1110
address = try .init(ipAddress: "127.0.0.1", port: 5432)
1211
#endif
@@ -15,7 +14,7 @@ extension PostgresConnection {
1514
.map { conn }
1615
}
1716
} catch {
18-
return eventLoop.makeFailedFuture(error: error)
17+
return eventLoop.makeFailedFuture(error)
1918
}
2019
}
2120
}

0 commit comments

Comments
 (0)