Skip to content

Commit

Permalink
RavenDB-21755 Fix test can_incremental_snapshot_and_restore_with_subs…
Browse files Browse the repository at this point in the history
…cription(backupType: Snapshot)
  • Loading branch information
efratshenhar authored and ppekrol committed Dec 19, 2023
1 parent eb3f061 commit 15fc5e8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3799,8 +3799,14 @@ public async Task can_incremental_snapshot_and_restore_with_subscription(BackupT

mre.WaitOne(_reasonableWaitTime);
mre.Reset();
List<SubscriptionState> subscriptionsConfig;
await WaitForValueAsync(async () =>
{
subscriptionsConfig = await store.Subscriptions.GetSubscriptionsAsync(0, 10);
return subscriptionsConfig[0].ChangeVectorForNextBatchStartingPoint;
}, lastCv);

var subscriptionsConfig = await store.Subscriptions.GetSubscriptionsAsync(0, 10);
subscriptionsConfig = await store.Subscriptions.GetSubscriptionsAsync(0, 10);
Assert.Equal(1, subscriptionsConfig.Count);
Assert.Equal(lastCv, subscriptionsConfig[0].ChangeVectorForNextBatchStartingPoint);
var snapshotCv = lastCv;
Expand Down

0 comments on commit 15fc5e8

Please sign in to comment.