style: fix trailing whitespace in SchemaCompatibilityTests.cs
This commit is contained in:
parent
39736dcee0
commit
f3aed21aea
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue