Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ await executor.ExecuteAsync(
public async Task NestedDataLoader()
{
var snapshot = new Snapshot();
using var cts = new CancellationTokenSource(2000);

snapshot.Add(
await new ServiceCollection()
Expand All @@ -385,9 +384,11 @@ public async Task NestedDataLoader()
.AddType<FooQueries>()
.AddDataLoader<FooDataLoader>()
.AddDataLoader<FooNestedDataLoader>()
.ExecuteRequestAsync("query Foo { foo { id field } }", cancellationToken: cts.Token));
.ExecuteRequestAsync(
"query Foo { foo { id field } }",
cancellationToken: TestContext.Current.CancellationToken));

await snapshot.MatchMarkdownAsync(cts.Token);
await snapshot.MatchMarkdownAsync(TestContext.Current.CancellationToken);
}

[Fact]
Expand Down
Loading