From c0e55000b8971361c4a35ca361ad924bd3ec9d08 Mon Sep 17 00:00:00 2001 From: Jens Melgaard Date: Thu, 16 Nov 2023 08:28:54 +0100 Subject: [PATCH] exttra check --- src/DotJEM.Json.Index2.Snapshots.Test/SnapshotsTest.cs | 2 ++ 1 file changed, 2 insertions(+) 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);