Skip to content

Instantly share code, notes, and snippets.

@osheroff
Created April 8, 2014 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osheroff/10156601 to your computer and use it in GitHub Desktop.
Save osheroff/10156601 to your computer and use it in GitHub Desktop.
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