Skip to content

Commit

Permalink
RavenDB-20446 Fixing occassionally failing. Let's wait explicitly for…
Browse files Browse the repository at this point in the history
… index to be non stale before issuing a query so we will be sure we won't wait for the replacement to complete the swap.
  • Loading branch information
arekpalinski committed Apr 12, 2024
1 parent 2c82376 commit d7a96a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/SlowTests/Issues/RavenDB_12269.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public async Task Changing_index_def_must_not_error_index()

await session.SaveChangesAsync();

Indexes.WaitForIndexing(store);

// this will ensure that index isn't in error state
try
{
Expand Down

0 comments on commit d7a96a4

Please sign in to comment.