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

The connection url parssing don't accept the socket option
上级 e54acf13
......@@ -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"]}"
Klass.establish_connection(url)
assert_equal ar_config['database'], Klass.connection.current_database
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册