Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions tests/NRedisStack.Tests/Search/SearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,12 @@ private void AddDocument(IDatabase db, string key, Dictionary<string, object> 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)]
Expand Down
Loading