diff --git a/tests/ServerMonitorManager.Control.Tests/SchemaCompatibilityTests.cs b/tests/ServerMonitorManager.Control.Tests/SchemaCompatibilityTests.cs index ba98a1c..272aae0 100644 --- a/tests/ServerMonitorManager.Control.Tests/SchemaCompatibilityTests.cs +++ b/tests/ServerMonitorManager.Control.Tests/SchemaCompatibilityTests.cs @@ -15,7 +15,7 @@ public sealed class SchemaCompatibilityTests { // Try to find the alpha7.db file which should be generated by CI var dbPath = Path.GetFullPath(Path.Combine(System.AppContext.BaseDirectory, "..", "..", "..", "..", "..", "tests", "acceptance", "alpha7.db")); - + if (!File.Exists(dbPath)) { // Skip the test locally if the file hasn't been generated @@ -28,16 +28,16 @@ public sealed class SchemaCompatibilityTests var command = connection.CreateCommand(); command.CommandText = "PRAGMA user_version;"; var userVersion = Convert.ToInt64(await command.ExecuteScalarAsync()); - + Assert.True(userVersion > 0, "Database user_version should be greater than 0"); - + // 2. Open it with the current ControlStore to see if data reads correctly and it doesn't crash var store = new ControlStore(Options.Create(new ControlOptions { DatabasePath = dbPath })); await store.InitializeAsync(CancellationToken.None); - + // 3. Test that we can read from it var links = await store.ListEffectiveLinksForNodeAsync("nonexistent", CancellationToken.None); Assert.Empty(links); - + } }