File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
spec/mongoid/contextual/mongo Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
require "spec_helper"
4
+ require 'concurrent-ruby'
4
5
5
6
describe Mongoid ::Contextual ::Mongo ::DocumentsLoader do
6
- # https://jira.mongodb.org/browse/MONGOID-5505
7
- require_mri
8
-
9
7
let ( :view ) do
10
8
double ( 'view' ) . tap do |view |
11
9
allow ( view ) . to receive ( :map )
31
29
end
32
30
33
31
context 'state management' do
32
+ # Java does not allow creating a ThreadPoolExecutor with 0 max and
33
+ # min threads.
34
+ require_mri
35
+
34
36
let ( :executor ) do
35
37
# Such executor will never execute a task, so it guarantees that
36
38
# our task will stay in its initial state.
103
105
end
104
106
105
107
context 'synchronously' do
108
+ # Java does not allow creating a ThreadPoolExecutor with 0 max and
109
+ # min threads.
110
+ require_mri
111
+
106
112
let ( :executor ) do
107
113
# Such executor will never execute a task, so it guarantees that
108
114
# our task will stay in its initial state.
You can’t perform that action at this time.
0 commit comments