Skip to content

Commit

Permalink
RavenDB-21662 : temp fix for CanMigrateFromCurrentTo42 and CanMigrate…
Browse files Browse the repository at this point in the history
…FromCurrentTo54
  • Loading branch information
aviv86 committed Nov 12, 2023
1 parent 5eda4ec commit affe10d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/InterversionTests/SmugglerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Raven.Client.Documents.Smuggler;
using Raven.Client.ServerWide;
using Raven.Client.ServerWide.Operations;
using Raven.Server.Config;
using Raven.Server.Documents;
using Raven.Server.Smuggler.Migration;
using Raven.Tests.Core.Utils.Entities;
Expand Down Expand Up @@ -397,8 +398,12 @@ public async Task CanMigrateFrom54ToCurrent()
public async Task CanMigrateFromCurrentTo42()
{
using var store42 = await GetDocumentStoreAsync(Server42Version);
using var storeCurrent = GetDocumentStore();

using var storeCurrent = GetDocumentStore(new Options
{
// workaround for RavenDB-21687
ModifyDatabaseRecord = record =>
record.Settings[RavenConfiguration.GetKey(x => x.ExportImport.CompressionAlgorithm)] = "Gzip"
});
storeCurrent.Maintenance.Send(new CreateSampleDataOperation());
using (var session = storeCurrent.OpenAsyncSession())
{
Expand Down Expand Up @@ -441,7 +446,12 @@ public async Task CanMigrateFromCurrentTo42()
public async Task CanMigrateFromCurrentTo54()
{
using var store54 = await GetDocumentStoreAsync(Server54Version);
using var storeCurrent = GetDocumentStore();
using var storeCurrent = GetDocumentStore(new Options
{
// workaround for RavenDB-21687
ModifyDatabaseRecord = record =>
record.Settings[RavenConfiguration.GetKey(x => x.ExportImport.CompressionAlgorithm)] = "Gzip"
});

storeCurrent.Maintenance.Send(new CreateSampleDataOperation());
using (var session = storeCurrent.OpenAsyncSession())
Expand Down

0 comments on commit affe10d

Please sign in to comment.