Skip to content

Commit

Permalink
Fix Test (#20791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Basel Rustum authored May 3, 2021
1 parent 2ab5507 commit 125a9f8
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,14 @@ await TestRetryHelper.RetryAsync<AsyncPageable<QueryResultPage>>(async () =>
TimeSpan.FromSeconds(5),
queryAggregateSeriesRequestOptions);

var countFound = false;
long? totalCount = 0;
await foreach (TimeSeriesPoint point in queryAggregateSeriesPages.GetResultsAsync())
{
if ((long?)point.GetValue("Count") == 30)
{
countFound = true;
}
var currentCount = (long?)point.GetValue("Count");
totalCount += currentCount;
}

countFound.Should().BeTrue();
totalCount.Should().Be(30);

return null;
}, MaxNumberOfRetries, s_retryDelay);
Expand Down

0 comments on commit 125a9f8

Please sign in to comment.