Skip to content

Commit d6e81aa

Browse files
committed
only continue on last attempt!
1 parent 5d05a64 commit d6e81aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/NRedisStack.Tests/Search/SearchTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public void TestApplyAndFilterAggregations(string endpointId)
550550
Row r1 = res.GetRow(0);
551551
Row r2 = res.GetRow(1);
552552
Log($"Attempt {attempt} of {maxAttempts}: avgscore {r2.GetDouble("avgscore")}");
553-
if (!IsNear(r2.GetDouble("avgscore"), 67.5)) continue; // this test can be flakey on cluster
553+
if (attempt != maxAttempts && !IsNear(r2.GetDouble("avgscore"), 67.5)) continue; // this test can be flakey on cluster
554554

555555
Assert.Equal("def", r1.GetString("name"));
556556
Assert.Equal(52.5, r1.GetDouble("avgscore"), 0);

0 commit comments

Comments
 (0)