diff --git a/spec/services/job_processor_spec.rb b/spec/services/job_processor_spec.rb index 0044038ffe..041c80d5d4 100644 --- a/spec/services/job_processor_spec.rb +++ b/spec/services/job_processor_spec.rb @@ -1,5 +1,11 @@ # frozen_string_literal: true +# We need to configure MiniRacer to allow forking. +# Otherwise this spec hangs on CI. +# https://github.com/rubyjs/mini_racer#fork-safety +require "mini_racer" +MiniRacer::Platform.set_flags!(:single_threaded) + require 'spec_helper' class TestJob < ActiveJob::Base