File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
- import NIO
2
- import NIOPostgres
3
1
import PostgresKit
4
2
import SQLKitBenchmark
5
3
import XCTest
6
- import DatabaseKit
7
4
8
5
class PostgresKitTests : XCTestCase {
9
6
private var group : EventLoopGroup !
Original file line number Diff line number Diff line change 1
- import NIO
2
- import NIOPostgres
1
+ import PostgresKit
3
2
4
3
extension PostgresConnection {
5
4
static func test( on eventLoop: EventLoop ) -> EventLoopFuture < PostgresConnection > {
6
5
do {
7
6
let address : SocketAddress
8
7
#if os(Linux)
9
- address = try . newAddressResolving ( host : " psql " , port: 5432 )
8
+ address = try . makeAddressResolvingHost ( " psql " , port: 5432 )
10
9
#else
11
10
address = try . init( ipAddress: " 127.0.0.1 " , port: 5432 )
12
11
#endif
@@ -15,7 +14,7 @@ extension PostgresConnection {
15
14
. map { conn }
16
15
}
17
16
} catch {
18
- return eventLoop. makeFailedFuture ( error: error )
17
+ return eventLoop. makeFailedFuture ( error)
19
18
}
20
19
}
21
20
}
You can’t perform that action at this time.
0 commit comments