We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814b684 commit e751790Copy full SHA for e751790
tests/Foundatio.LuceneQueryParser.Tests/QueryValidatorTests.cs
@@ -248,13 +248,13 @@ public async Task Document_ValidateAsync_WithAllowedFields_Works()
248
}
249
250
[Fact]
251
- public async Task Document_ValidateAndThrowAsync_ThrowsOnInvalid()
+ public Task Document_ValidateAndThrowAsync_ThrowsOnInvalid()
252
{
253
var document = LuceneQuery.Parse("title:hello").Document;
254
var options = new QueryValidationOptions();
255
options.AllowedFields.Add("author");
256
257
- await Assert.ThrowsAsync<QueryValidationException>(() =>
+ return Assert.ThrowsAsync<QueryValidationException>(() =>
258
document.ValidateAndThrowAsync(options));
259
260
0 commit comments