Skip to content

Commit 2e8dfaa

Browse files
committed
Add source debug
1 parent 2076e32 commit 2e8dfaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/graphql/dataloader/source_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def fetch(keys)
2323
dl.with(FailsToLoadSource).request(nil)
2424

2525
source_cache = dl.instance_variable_get(:@source_cache)
26-
assert source_cache[FailsToLoadSource][[{}]].pending?
26+
source_cache_for_source = source_cache[FailsToLoadSource]
27+
assert source_cache_for_source[[{}]].pending?, "The cache includes a pending source (#{source_cache_for_source.inspect})"
2728
end
2829

2930
class CustomKeySource < GraphQL::Dataloader::Source

0 commit comments

Comments
 (0)