mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user