feat(processing): persist safe atomic operation history
This commit is contained in:
@@ -79,10 +79,11 @@ public sealed class StartupAndLockTests(ITestOutputHelper output)
|
||||
db.Add(job);
|
||||
await db.SaveChangesAsync();
|
||||
var migrations = (await db.Database.GetAppliedMigrationsAsync()).ToArray();
|
||||
Assert.Equal("20261026090000_AddCvImportReviewEvidence", migrations[^1]);
|
||||
Assert.Equal("20261028090000_AddUserOperationEvents", migrations[^1]);
|
||||
// Only this test's newly-created schema is downgraded; no existing database is selected.
|
||||
await db.GetService<IMigrator>().MigrateAsync(migrations[^3]);
|
||||
Assert.Equal(migrations[^2..], await db.Database.GetPendingMigrationsAsync());
|
||||
const string beforeRd21 = "20261021090000_AddDashboardLayoutPreference";
|
||||
await db.GetService<IMigrator>().MigrateAsync(beforeRd21);
|
||||
Assert.Equal(migrations.SkipWhile(migration => migration != beforeRd21).Skip(1), await db.Database.GetPendingMigrationsAsync());
|
||||
db.ChangeTracker.Clear();
|
||||
await database.App.InitializeJobTrackerAsync();
|
||||
await using var verify = database.Context();
|
||||
|
||||
Reference in New Issue
Block a user