Skip to content
Browse files

Skip connection url test when the machine is using socket configuration.

The connection url parssing don't accept the socket option
  • Loading branch information...
1 parent e54acf1 commit d5ec8efdafaf24661b7d40478ca91dfda9464f93 @rafaelfranca rafaelfranca committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/test/cases/adapters/mysql/connection_test.rb
3 activerecord/test/cases/adapters/mysql/connection_test.rb
@@ -19,6 +19,9 @@ def test_mysql_reconnect_attribute_after_connection_with_reconnect_true
def test_connect_with_url
run_without_connection do |orig|
ar_config = ARTest.connection_config['arunit']
+ skip "This test doesn't work with custom socket location" if ar_config['socket']
url = "mysql://#{ar_config["username"]}@localhost/#{ar_config["database"]}"
assert_equal ar_config['database'], Klass.connection.current_database

0 comments on commit d5ec8ef

Please sign in to comment.
Something went wrong with that request. Please try again.