fix(localdb): DI review fixes — onReady leak guard, BusyTimeoutMs ctor guard, shared allow-list

This commit is contained in:
Joseph Doherty
2026-07-17 21:47:28 -04:00
parent 529585163c
commit 4f9982c53f
6 changed files with 53 additions and 12 deletions
@@ -141,6 +141,13 @@ public sealed class SqliteLocalDbTests : IDisposable
Assert.Throws<ArgumentException>(() => new SqliteLocalDb(new LocalDbOptions { Path = " " }));
}
[Fact]
public void Ctor_NonPositiveBusyTimeout_Throws()
{
Assert.Throws<ArgumentException>(() =>
new SqliteLocalDb(new LocalDbOptions { Path = _path, BusyTimeoutMs = 0 }));
}
[Fact]
public void Ctor_InvalidSynchronous_Throws()
{