diff options
author | Eric Wong <e@80x24.org> | 2015-06-15 19:21:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-06-15 19:21:22 +0000 |
commit | dbb0db4cc9ba99e975d7a61e99756c38d6f68a79 (patch) | |
tree | 931474d2671544b360732a95faff9d85569cc999 | |
parent | 7154428df6830471e99eadef1e1f9a41c8a802f6 (diff) | |
download | yahns-dbb0db4cc9ba99e975d7a61e99756c38d6f68a79.tar.gz |
We want to avoid race conditions if tests become multithreaded from Kernel#warn internally issuing a second write.
-rw-r--r-- | test/helper.rb | 2 |
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 |