spec/integration_spec.rb in parallel_tests-0.10.4 vs spec/integration_spec.rb in parallel_tests-0.11.0
- old
+ new
@@ -186,10 +186,10 @@
result.should_not include('YYY')
result.should include('ZZZ')
end
it "can wait_for_other_processes_to_finish" do
- write "test/a_test.rb", "require 'parallel_tests'; ParallelTests.wait_for_other_processes_to_finish; puts 'a'"
+ write "test/a_test.rb", "require 'parallel_tests'; sleep 0.5 ; ParallelTests.wait_for_other_processes_to_finish; puts 'a'"
write "test/b_test.rb", "sleep 1; puts 'b'"
write "test/c_test.rb", "sleep 1.5; puts 'c'"
write "test/d_test.rb", "sleep 2; puts 'd'"
run_tests("test", :processes => 4).should include("b\nc\nd\na\n")
end