From bdec294d5e94f4187bdbdfd70bb5279ae64ed7a8 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 3 Oct 2018 21:23:17 +0000 Subject: [PATCH] --- test/raven-integration/Search/SearchOps.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/raven-integration/Search/SearchOps.cs b/test/raven-integration/Search/SearchOps.cs index 56905680..3479a697 100644 --- a/test/raven-integration/Search/SearchOps.cs +++ b/test/raven-integration/Search/SearchOps.cs @@ -158,9 +158,6 @@ namespace raven_integration - //TODO: WILDCARD SEARCH TEST - //TODO: WILDCARD PLUS NON WILDCARD SEARCH TEST - [Fact] public async void WildCardStartsWithSearchShouldWork() { @@ -479,6 +476,11 @@ namespace raven_integration //assert it's not unbounded ResultCount.Should().BeLessOrEqualTo(1000); + //assert the TotalResultsFound is greater than the results returned + var TotalResultsFound = a.ObjectResponse["result"]["totalResultsFound"].Value(); + //assert it's not unbounded + TotalResultsFound.Should().BeGreaterThan(ResultCount); + //5456 ms is the longest I've seen in initial testing with all 1000 results so setting 10% above TimeToSearch.Should().BeLessThan(6000, "Constrained big data search should not be too slow");