[Secrets] Windows test failures: SkipException from [Fact], undeletable temp DB, intermittent DPAPI test #27

Closed
opened 2026-11-09 14:10:42 -05:00 by dohertj2 · 1 comment
Owner

Secrets test project on Windows (found running it on windev for #25):

  • Two permission tests throw SkipException from a plain [Fact], so xunit reports them failed instead of skipped — use [SkippableFact] (or Assert.Skip on xunit v3).
  • AddZbSecretsTests.Resolver_Works_EndToEnd_ThroughDi cannot delete its temp DB because the file is still open — call SqliteConnection.ClearAllPools() (or ClearPool) before deleting.
  • Dpapi_RoundTripsOnWindows failed once, then passed 3 runs — watch it.
    Result today: 222/225 on windev with these 3 failing on old and new code.
Secrets test project on Windows (found running it on windev for #25): - Two permission tests throw `SkipException` from a plain `[Fact]`, so xunit reports them failed instead of skipped — use `[SkippableFact]` (or Assert.Skip on xunit v3). - `AddZbSecretsTests.Resolver_Works_EndToEnd_ThroughDi` cannot delete its temp DB because the file is still open — call `SqliteConnection.ClearAllPools()` (or ClearPool) before deleting. - `Dpapi_RoundTripsOnWindows` failed once, then passed 3 runs — watch it. Result today: 222/225 on windev with these 3 failing on old and new code.
dohertj2 added the type:testpriority:p3 labels 2026-11-09 14:10:42 -05:00
Author
Owner

Fixed on main 726fbcc: the two permission tests (KekDoctorFlowTests, BundleFlowTests) use [SkippableFact] (xunit 2.9.3 + Xunit.SkippableFact already referenced); Resolver_Works_EndToEnd_ThroughDi calls SqliteConnection.ClearAllPools() before deleting its temp DB. windev: Secrets.Tests 223 passed / 2 skipped / 0 failed (the 2 skips are the permission tests). Dpapi_RoundTripsOnWindows passed this time; its earlier one-off failure is unexplained — reopen if it recurs.

Fixed on main 726fbcc: the two permission tests (KekDoctorFlowTests, BundleFlowTests) use [SkippableFact] (xunit 2.9.3 + Xunit.SkippableFact already referenced); Resolver_Works_EndToEnd_ThroughDi calls SqliteConnection.ClearAllPools() before deleting its temp DB. windev: Secrets.Tests 223 passed / 2 skipped / 0 failed (the 2 skips are the permission tests). Dpapi_RoundTripsOnWindows passed this time; its earlier one-off failure is unexplained — reopen if it recurs.
Sign in to join this conversation.