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.
1 parent de82622 commit 0041454Copy full SHA for 0041454
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