about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-06-15 19:21:22 +0000
committerEric Wong <e@80x24.org>2015-06-15 19:21:22 +0000
commitdbb0db4cc9ba99e975d7a61e99756c38d6f68a79 (patch)
tree931474d2671544b360732a95faff9d85569cc999 /test
parent7154428df6830471e99eadef1e1f9a41c8a802f6 (diff)
downloadyahns-dbb0db4cc9ba99e975d7a61e99756c38d6f68a79.tar.gz
We want to avoid race conditions if tests become multithreaded
from Kernel#warn internally issuing a second write.
Diffstat (limited to 'test')
-rw-r--r--test/helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helper.rb b/test/helper.rb
index 7b8c1aa..c86f3e3 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -140,7 +140,7 @@ class DieIfUsed
   end
 
   def close
-    warn "INFO #$$ closed DieIfUsed #{@@n += 1}"
+    warn "INFO #$$ closed DieIfUsed #{@@n += 1}\n"
   end
 end