Skip to content

Commit

Permalink
exttra check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeme committed Nov 16, 2023
1 parent 6bfde28 commit c0e5500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public async Task WriteContext_MakesDocumentsAvailable()

FakeSnapshotTarget target = new FakeSnapshotTarget();
await index.TakeSnapshotAsync(target);
index.Storage.Delete();
Assert.That(index.Search(new MatchAllDocsQuery()).Count(), Is.EqualTo(0));

ISnapshotSource source = target.LastCreatedWriter.GetSource();
Assert.That(await index.RestoreSnapshotAsync(source), Is.Not.Null);
Expand Down

0 comments on commit c0e5500

Please sign in to comment.