spec/integration_spec.rb in parallel_tests-0.3.2 vs spec/integration_spec.rb in parallel_tests-0.3.3

- old
+ new

@@ -76,8 +76,9 @@ write 'xxx4_spec.rb', 'describe("it"){it("should"){sleep 2}}' write 'xxx5_spec.rb', 'describe("it"){it("should"){sleep 2}}' write 'xxx6_spec.rb', 'describe("it"){it("should"){sleep 2}}' t = Time.now run_specs :processes => 6 - (Time.now - t).should < (Parallel.processor_count == 1 ? 10 : 5) + expected = ((Parallel.processor_count == 1 or ENV['RUN_CODE_RUN']) ? 10 : 5) + (Time.now - t).should <= expected end end \ No newline at end of file