Created
April 8, 2014 17:03
-
-
Save osheroff/10156601 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/test_arhp.rb b/test/test_arhp.rb | |
index afdd783..fcea9da 100644 | |
--- a/test/test_arhp.rb | |
+++ b/test/test_arhp.rb | |
@@ -97,7 +97,7 @@ class ActiveRecordHostPoolTest < Test::Unit::TestCase | |
# now, disable our auto-switching and trigger a mysql reconnect | |
switch_to_klass.connection.unproxied.stubs(:_switch_connection).returns(true) | |
- switch_to_klass.connection.execute("KILL #{thread_id}") | |
+ Test3.connection.execute("KILL #{thread_id}") | |
# and finally, did mysql reconnect correctly? | |
puts "\nAnd now we end up on #{current_database(switch_to_klass)}" if debug_me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment