We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49f7fe commit 637043aCopy full SHA for 637043a
1 file changed
βlib/simplecov.rbβ
@@ -267,14 +267,20 @@ def result_exit_status(result)
267
#
268
def final_result_process?
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?)
+ # 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?
277
end
278
279
280
# @api private
281
282
def wait_for_other_processes
- return unless defined?(ParallelTests) && final_result_process?
283
+ return unless final_result_process?
284
285
ParallelTests.wait_for_other_processes_to_finish
286
0 commit comments