test/test_manager.rb in sideband-1.0.0 vs test/test_manager.rb in sideband-1.0.1

- old
+ new

@@ -27,19 +27,22 @@ @manager.queue << worker sleep 0.1 assert_equal 'finished', worker.work end - 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 + if !jruby? + def test_fork_handling + puts RUBY_PLATFORM + 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 end +end def test_killed @manager.kill assert_nil @manager.queue assert_nil @manager.thread