Skip to content

Commit

Permalink
RavenDB-20325 : change tests to run in all database modes
Browse files Browse the repository at this point in the history
  • Loading branch information
aviv committed May 20, 2024
1 parent 38c109d commit fa3b943
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4005,13 +4005,14 @@ await store.Subscriptions.CreateAsync(new SubscriptionCreationOptions<Order>
}
}

[RavenFact(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)]
public async Task can_backup_and_restore_with_deleted_timeseries_ranges()
[RavenTheory(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)]
[RavenData(DatabaseMode = RavenDatabaseMode.All)]
public async Task can_backup_and_restore_with_deleted_timeseries_ranges(Options options)
{
var backupPath = NewDataPath(suffix: "BackupFolder");
const string id = "users/1";

using (var store = GetDocumentStore())
using (var store = GetDocumentStore(options))
{
var baseline = DateTime.UtcNow;
using (var session = store.OpenAsyncSession())
Expand Down Expand Up @@ -4058,7 +4059,7 @@ public async Task can_backup_and_restore_with_deleted_timeseries_ranges()
}, expectedVal: true));
}

using (var store = GetDocumentStore())
using (var store = GetDocumentStore(options))
{
await store.Smuggler.ImportIncrementalAsync(new DatabaseSmugglerImportOptions(),
Directory.GetDirectories(backupPath).First());
Expand All @@ -4074,13 +4075,14 @@ await store.Smuggler.ImportIncrementalAsync(new DatabaseSmugglerImportOptions(),
}
}

[RavenFact(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)]
public async Task deleted_ranges_should_be_processed_before_timeseries()
[RavenTheory(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)]
[RavenData(DatabaseMode = RavenDatabaseMode.All)]
public async Task deleted_ranges_should_be_processed_before_timeseries(Options options)
{
var backupPath = NewDataPath(suffix: "BackupFolder");
const string id = "users/1";

using (var store = GetDocumentStore())
using (var store = GetDocumentStore(options))
{
var baseline = DateTime.UtcNow;
using (var session = store.OpenAsyncSession())
Expand Down Expand Up @@ -4133,7 +4135,7 @@ public async Task deleted_ranges_should_be_processed_before_timeseries()
}, expectedVal: true));
}

using (var store = GetDocumentStore())
using (var store = GetDocumentStore(options))
{
await store.Smuggler.ImportIncrementalAsync(new DatabaseSmugglerImportOptions(),
Directory.GetDirectories(backupPath).First());
Expand Down

0 comments on commit fa3b943

Please sign in to comment.