From ae2f00ee732a97f07b4fad11c346c9ae73148ca3 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 31 Aug 2018 13:44:56 +0800 Subject: [PATCH] DEV: Include the thread in the error message. --- .../connection_adapters/postgresql_fallback_adapter_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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