diff --git a/src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs b/src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs index 1fbf956..fe08582 100644 --- a/src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs +++ b/src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs @@ -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);