File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -267,14 +267,20 @@ def result_exit_status(result)
267
267
#
268
268
def final_result_process?
269
269
# checking for ENV["TEST_ENV_NUMBER"] to determine if the tests are being run in parallel
270
- !ENV [ "TEST_ENV_NUMBER" ] || ( defined? ( ParallelTests ) && ParallelTests . last_process? )
270
+ # Short circuit if not parallel
271
+ return false unless ENV [ "TEST_ENV_NUMBER" ]
272
+
273
+ make_parallel_tests_available
274
+ return false unless defined? ( ParallelTests )
275
+
276
+ ParallelTests . last_process?
271
277
end
272
278
273
279
#
274
280
# @api private
275
281
#
276
282
def wait_for_other_processes
277
- return unless defined? ( ParallelTests ) && final_result_process?
283
+ return unless final_result_process?
278
284
279
285
ParallelTests . wait_for_other_processes_to_finish
280
286
end
You can’t perform that action at this time.
0 commit comments