Permalink
Browse files

More race condition issues

  • Loading branch information...
1 parent 9046e61 commit b2b8f9dc63de5f44a83686a16352f2e8e2552de5 @mperham committed Sep 30, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 test/helper.rb
  2. +1 −1 test/test_batch.rb
View
@@ -10,6 +10,7 @@
Thread.list.each do |thread|
next if thread.status == 'run'
puts "WARNING: lingering threads found. All threads should be shutdown and garbage collected."
+ puts "This is normal if a test failed so a queue did not get shutdown."
p [thread, thread[:label]]
end
end
View
@@ -16,7 +16,7 @@ def test_simple_batch_operation
# asking for the results should block
results = batch.results(1.0)
c = Time.now
- assert_in_delta(0.5, (c - b), 0.1)
+ assert_in_delta(0.5, (c - b), 0.15)
assert_equal 10, results.size
assert_kind_of Time, results[0]

0 comments on commit b2b8f9d

Please sign in to comment.