From 5eda4ec69b11e1cbad06f73f84ae27fe7f2de9aa Mon Sep 17 00:00:00 2001 From: aviv Date: Sun, 12 Nov 2023 15:51:54 +0200 Subject: [PATCH] RavenDB-21662 : fix failing inter version smuggler test --- test/InterversionTests/SmugglerTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/InterversionTests/SmugglerTests.cs b/test/InterversionTests/SmugglerTests.cs index 66a23327de59..2333391757bb 100644 --- a/test/InterversionTests/SmugglerTests.cs +++ b/test/InterversionTests/SmugglerTests.cs @@ -163,7 +163,7 @@ public async Task CanExportFromCurrentAndImportTo42(ExcludeOn excludeOn) using var store42 = await GetDocumentStoreAsync(Server42Version); using var storeCurrent = GetDocumentStore(); //Export - storeCurrent.Maintenance.Send(new CreateSampleDataOperation()); + await storeCurrent.Maintenance.SendAsync(new CreateSampleDataOperation()); using (var session = storeCurrent.OpenAsyncSession()) { var dateTime = new DateTime(2020, 3, 29); @@ -177,7 +177,7 @@ public async Task CanExportFromCurrentAndImportTo42(ExcludeOn excludeOn) await session.SaveChangesAsync(); } - var exportOptions = new DatabaseSmugglerExportOptions(); + var exportOptions = new DatabaseSmugglerExportOptions { CompressionAlgorithm = ExportCompressionAlgorithm.Gzip }; if (excludeOn == ExcludeOn.Export) exportOptions.OperateOnTypes &= ~(DatabaseItemType.Attachments | DatabaseItemType.RevisionDocuments | DatabaseItemType.CounterGroups); var exportOperation = await storeCurrent.Smuggler.ExportAsync(exportOptions, file);