From 0fac6cdba916092ab81ed106ccc0b53bd32a53e6 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 3 Sep 2018 10:55:25 +0800 Subject: [PATCH] DEV: Better debugging information when test fails. --- .../connection_adapters/postgresql_fallback_adapter_spec.rb | 3 ++- 1 file changed, 2 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 94ff62c6fd7..b1d522633aa 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 @@ -43,7 +43,8 @@ describe ActiveRecord::ConnectionHandling do (Thread.list - @threads).each do |thread| unless thread.join(5) - raise "Thread still running: #{thread}" + puts Thread.list - @threads + raise "Threads still running" end end