diff --git a/tests/NRedisStack.Tests/Search/SearchTests.cs b/tests/NRedisStack.Tests/Search/SearchTests.cs index 0c1f101a..d24df7cb 100644 --- a/tests/NRedisStack.Tests/Search/SearchTests.cs +++ b/tests/NRedisStack.Tests/Search/SearchTests.cs @@ -55,20 +55,12 @@ private void AddDocument(IDatabase db, string key, Dictionary ob private void AssertDatabaseSize(IDatabase db, int expected) { - // in part, this is to allow replication to catch up - for (int i = 0; i < 10; i++) - { - Assert.Equal(expected, DatabaseSize(db)); - } + Assert.Equal(expected, DatabaseSize(db)); } private async Task AssertDatabaseSizeAsync(IDatabase db, int expected) { - // in part, this is to allow replication to catch up - for (int i = 0; i < 10; i++) - { - Assert.Equal(expected, await DatabaseSizeAsync(db)); - } + Assert.Equal(expected, await DatabaseSizeAsync(db)); } [SkipIfRedisTheory(Is.Enterprise)]