This commit is contained in:
2018-10-04 19:19:42 +00:00
parent bbaaa26a0a
commit 1c0400ca9f

View File

@@ -476,11 +476,13 @@ namespace raven_integration
//assert it's not unbounded
ResultCount.Should().BeLessOrEqualTo(1000);
if (ResultCount > 999)
{
//assert the TotalResultsFound is greater than the results returned
var TotalResultsFound = a.ObjectResponse["result"]["totalResultsFound"].Value<long>();
//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");