Configure MiniRacer to allow forking

The spec for forking was hanging. This could be revisited after
upgrading to mini_racer 0.6.1.
This commit is contained in:
Maikel Linke
2023-01-13 11:39:39 +11:00
committed by Filipe
parent 26402397ea
commit 6472070517

View File

@@ -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