Skip to content

Commit

Permalink
Fix flaky conversion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Oct 10, 2024
1 parent 3b0f6d5 commit f8034c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class ActiveSupport::TestCase
parallelize(workers: :number_of_processors)

parallelize_setup do |worker|
# Make sure each worker has it's own base path for conversion testing. Sadly
# we can't do this in config/environment/test.rb :(
TranscodedItem.class.define_method :codec_conversion_base_path,
->(codec_conversion) { File.join(TranscodedItem::BASE_PATH, worker, codec_conversion.id) }
SimpleCov.command_name "#{SimpleCov.command_name}-#{worker}"
end

Expand Down

0 comments on commit f8034c2

Please sign in to comment.