Skip to content

Commit

Permalink
RavenDB-21662 : fix failing inter version smuggler test
Browse files Browse the repository at this point in the history
  • Loading branch information
aviv86 committed Nov 12, 2023
1 parent 76d753b commit 5eda4ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/InterversionTests/SmugglerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 5eda4ec

Please sign in to comment.