Skip to content

Commit

Permalink
Add integration test for threads
Browse files Browse the repository at this point in the history
Not sure if I want to keep this but adding for now.
  • Loading branch information
MattFenelon committed Apr 26, 2024
1 parent dfef16b commit b791e4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/sideloading_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@ def type

context 'when nesting sideloads' do
before do
stub_const(
'Graphiti::Scope::GLOBAL_THREAD_POOL_EXECUTOR',
Concurrent::Delay.new do
Concurrent::ThreadPoolExecutor.new(max_threads: 0, synchronous: true, fallback_policy: :caller_runs)
end
)

PORO::EmployeeResource.class_eval do
allow_sideload :positions, class: Sideloading::PositionSideload
end
Expand Down

0 comments on commit b791e4d

Please sign in to comment.