Skip to content

Commit 6dbfd55

Browse files
MONGOID-5505 Skip jruby failing tests (#5504)
1 parent edbca8a commit 6dbfd55

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spec/mongoid/contextual/mongo/documents_loader_spec.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# frozen_string_literal: true
22

33
require "spec_helper"
4+
require 'concurrent-ruby'
45

56
describe Mongoid::Contextual::Mongo::DocumentsLoader do
6-
# https://jira.mongodb.org/browse/MONGOID-5505
7-
require_mri
8-
97
let(:view) do
108
double('view').tap do |view|
119
allow(view).to receive(:map)
@@ -31,6 +29,10 @@
3129
end
3230

3331
context 'state management' do
32+
# Java does not allow creating a ThreadPoolExecutor with 0 max and
33+
# min threads.
34+
require_mri
35+
3436
let(:executor) do
3537
# Such executor will never execute a task, so it guarantees that
3638
# our task will stay in its initial state.
@@ -103,6 +105,10 @@
103105
end
104106

105107
context 'synchronously' do
108+
# Java does not allow creating a ThreadPoolExecutor with 0 max and
109+
# min threads.
110+
require_mri
111+
106112
let(:executor) do
107113
# Such executor will never execute a task, so it guarantees that
108114
# our task will stay in its initial state.

0 commit comments

Comments
 (0)