Skip to content

Commit f446e14

Browse files
committed
cleanup docker
1 parent cf3794e commit f446e14

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tests/PostgreSQLTests/PostgreSQLConnectionTests.swift

+1-5
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ extension PostgreSQLConnection {
489489
/// Creates a test event loop and psql client over ssl.
490490
static func makeTest(transport: PostgreSQLTransportConfig) throws -> PostgreSQLConnection {
491491
#if os(macOS)
492-
return try _makeTest(hostname: self.dockerMachineHostname, password: "vapor_password", port: transport.isTLS ? 5433 : 5432, transport: transport)
492+
return try _makeTest(hostname: "192.168.99.100", password: "vapor_password", port: transport.isTLS ? 5433 : 5432, transport: transport)
493493
#else
494494
return try _makeTest(hostname: transport.isTLS ? "tls" : "cleartext", password: "vapor_password", transport: transport)
495495
#endif
@@ -504,10 +504,6 @@ extension PostgreSQLConnection {
504504
_ = try client.authenticate(username: "vapor_username", database: "vapor_database", password: password).wait()
505505
return client
506506
}
507-
508-
private static var dockerMachineHostname: String {
509-
return (try? Process.execute("docker-machine", "ip")) ?? "192.168.99.100"
510-
}
511507
}
512508

513509
func +=<T>(lhs: inout [T], rhs: T) {

0 commit comments

Comments
 (0)