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 @@ -94,11 +94,9 @@ public async Task CancellationToken_Is_Passed_Correctly()
Assert.True(tokenWasCorrectlyPassedToResolver);
}

[Fact]
[Fact(Timeout = 30_000)]
public async Task Ensure_Errors_Do_Not_Result_In_Timeouts()
{
using var cts = new CancellationTokenSource(1000);

await new ServiceCollection()
.AddGraphQL()
.AddQueryType(d => d.Name("abc").Field("a").Resolve("a"))
Expand All @@ -116,7 +114,7 @@ public async Task Ensure_Errors_Do_Not_Result_In_Timeouts()
__typename
}
}",
cancellationToken: cts.Token)
cancellationToken: TestContext.Current.CancellationToken)
.MatchSnapshotAsync();
}

Expand Down
Loading