test/test_manager.rb in sideband-1.0.2 vs test/test_manager.rb in sideband-1.0.3

- old
+ new

@@ -1,8 +1,8 @@ require 'helper' -class TestManager < MiniTest::Unit::TestCase +class TestManager < Minitest::Test def setup @manager = Sideband::Manager.new end @@ -17,26 +17,26 @@ def test_can_queue_and_process_proc skip 'Testing thread scheduling is hard...' work = 'work' @manager.queue << -> { work = 'finished' } sleep 0.5 - assert_equal 'finished', work + assert_equal 'finished', work end def test_can_queue_and_process_worker skip 'Testing thread scheduling is hard...' worker = EmailWorker.new assert_equal 'work', worker.work @manager.queue << worker sleep 0.5 - assert_equal 'finished', worker.work + assert_equal 'finished', worker.work end if !jruby? def test_fork_handling queue = @manager.queue thread = @manager.thread - + Process.stub(:pid, Process.pid + 1) do @manager.queue << -> { 'work' } refute_equal queue, @manager.queue refute_equal thread, @manager.thread end