From 1c0400ca9fd18a67c2090644f2bff95ae27c3ad3 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 4 Oct 2018 19:19:42 +0000 Subject: [PATCH] --- test/raven-integration/Search/SearchOps.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/raven-integration/Search/SearchOps.cs b/test/raven-integration/Search/SearchOps.cs index 3479a697..157729bb 100644 --- a/test/raven-integration/Search/SearchOps.cs +++ b/test/raven-integration/Search/SearchOps.cs @@ -476,11 +476,13 @@ 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); - + if (ResultCount > 999) + { + //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");