We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0f5cd9 commit d694a45Copy full SHA for d694a45
1 file changed
spec/mysql2/client_spec.rb
@@ -1011,7 +1011,13 @@ def run_gc
1011
1012
it "should raise a Mysql2::Error::ConnectionError exception upon connection failure due to invalid credentials" do
1013
expect do
1014
- new_client(host: 'localhost', username: 'asdfasdf8d2h', password: 'asdfasdfw42')
+ begin
1015
+ new_client(host: 'localhost', username: 'asdfasdf8d2h', password: 'asdfasdfw42')
1016
+ rescue Mysql2::Error => e
1017
+ raise unless e.message.include?('mysql_native_password')
1018
+
1019
+ skip("Native password is not supported")
1020
+ end
1021
end.to raise_error(Mysql2::Error::ConnectionError)
1022
1023
0 commit comments