Skip to content

A platform for community discussion. Free, open, simple.

DEV: Include the thread in the error message.

Guo Xiang Tanae2f00ee732a
diff --git a/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb b/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb
index 80d0cce5bd7..94ff62c6fd7 100644
--- a/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb
+++ b/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb
@@ -42,7 +42,9 @@ describe ActiveRecord::ConnectionHandling do
ActiveRecord::Base.unstub(:postgresql_connection)
(Thread.list - @threads).each do |thread|
- raise "Thread still running" unless thread.join(5)
+ unless thread.join(5)
+ raise "Thread still running: #{thread}"
+ end
end
ActiveRecord::Base.establish_connection