Skip to content

Commit

Permalink
Remove starting fiber count assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Oct 24, 2024
1 parent b199306 commit 59ec797
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/graphql/dataloader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1121,19 +1121,16 @@ def assert_last_max_fiber_count(expected_last_max_fiber_count)

res = schema.execute(query_str, context: { dataloader: fiber_counting_dataloader_class.new })
assert_nil res.context.dataloader.fiber_limit
assert_equal 1, FiberCounting.starting_fiber_count
assert_equal 12, FiberCounting.last_spawn_fiber_count
assert_last_max_fiber_count(9)

res = schema.execute(query_str, context: { dataloader: fiber_counting_dataloader_class.new(fiber_limit: 4) })
assert_equal 4, res.context.dataloader.fiber_limit
assert_equal 1, FiberCounting.starting_fiber_count
assert_equal 14, FiberCounting.last_spawn_fiber_count
assert_last_max_fiber_count(4)

res = schema.execute(query_str, context: { dataloader: fiber_counting_dataloader_class.new(fiber_limit: 6) })
assert_equal 6, res.context.dataloader.fiber_limit
assert_equal 1, FiberCounting.starting_fiber_count
assert_equal 10, FiberCounting.last_spawn_fiber_count
assert_last_max_fiber_count(6)
end
Expand Down

0 comments on commit 59ec797

Please sign in to comment.