We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd2425b + 0041454 commit 1fb7ad5Copy full SHA for 1fb7ad5
spec/mysql2/client_spec.rb
@@ -8,7 +8,9 @@
8
9
it "should raise an exception upon connection failure" do
10
lambda {
11
- Mysql2::Client.new DatabaseCredentials['root'].merge(:port => 999999)
+ # The odd local host IP address forces the mysql client library to
12
+ # use a TCP socket rather than a domain socket.
13
+ Mysql2::Client.new DatabaseCredentials['root'].merge(:host => '127.0.0.2', :port => 999999)
14
}.should raise_error(Mysql2::Error)
15
end
16
0 commit comments