Skip to content

Commit d34262b

Browse files
committed
Update assertions
1 parent 78bd98f commit d34262b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/graphql/dataloader_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,17 +1191,17 @@ def assert_last_max_fiber_count(expected_last_max_fiber_count, message = nil)
11911191

11921192
res = schema.execute(query_str, context: { dataloader: fiber_counting_dataloader_class.new })
11931193
assert_nil res.context.dataloader.fiber_limit
1194-
assert_equal 12, FiberCounting.last_spawn_fiber_count
1194+
assert_equal 10, FiberCounting.last_spawn_fiber_count
11951195
assert_last_max_fiber_count(9, "No limit works as expected")
11961196

11971197
res = schema.execute(query_str, context: { dataloader: fiber_counting_dataloader_class.new(fiber_limit: 4) })
11981198
assert_equal 4, res.context.dataloader.fiber_limit
1199-
assert_equal 14, FiberCounting.last_spawn_fiber_count
1199+
assert_equal 12, FiberCounting.last_spawn_fiber_count
12001200
assert_last_max_fiber_count(4, "Limit of 4 works as expected")
12011201

12021202
res = schema.execute(query_str, context: { dataloader: fiber_counting_dataloader_class.new(fiber_limit: 6) })
12031203
assert_equal 6, res.context.dataloader.fiber_limit
1204-
assert_equal 10, FiberCounting.last_spawn_fiber_count
1204+
assert_equal 8, FiberCounting.last_spawn_fiber_count
12051205
assert_last_max_fiber_count(6, "Limit of 6 works as expected")
12061206
end
12071207

0 commit comments

Comments
 (0)