style: fix trailing whitespace in SchemaCompatibilityTests.cs

This commit is contained in:
ochenstarik-ui 2026-08-10 13:35:50 +07:00
parent 39736dcee0
commit f3aed21aea

View file

@ -15,7 +15,7 @@ public sealed class SchemaCompatibilityTests
{ {
// Try to find the alpha7.db file which should be generated by CI // 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")); var dbPath = Path.GetFullPath(Path.Combine(System.AppContext.BaseDirectory, "..", "..", "..", "..", "..", "tests", "acceptance", "alpha7.db"));
if (!File.Exists(dbPath)) if (!File.Exists(dbPath))
{ {
// Skip the test locally if the file hasn't been generated // Skip the test locally if the file hasn't been generated
@ -28,16 +28,16 @@ public sealed class SchemaCompatibilityTests
var command = connection.CreateCommand(); var command = connection.CreateCommand();
command.CommandText = "PRAGMA user_version;"; command.CommandText = "PRAGMA user_version;";
var userVersion = Convert.ToInt64(await command.ExecuteScalarAsync()); var userVersion = Convert.ToInt64(await command.ExecuteScalarAsync());
Assert.True(userVersion > 0, "Database user_version should be greater than 0"); 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 // 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 })); var store = new ControlStore(Options.Create(new ControlOptions { DatabasePath = dbPath }));
await store.InitializeAsync(CancellationToken.None); await store.InitializeAsync(CancellationToken.None);
// 3. Test that we can read from it // 3. Test that we can read from it
var links = await store.ListEffectiveLinksForNodeAsync("nonexistent", CancellationToken.None); var links = await store.ListEffectiveLinksForNodeAsync("nonexistent", CancellationToken.None);
Assert.Empty(links); Assert.Empty(links);
} }
} }