[Secrets] Windows test failures: SkipException from [Fact], undeletable temp DB, intermittent DPAPI test #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Secrets test project on Windows (found running it on windev for #25):
SkipExceptionfrom a plain[Fact], so xunit reports them failed instead of skipped — use[SkippableFact](or Assert.Skip on xunit v3).AddZbSecretsTests.Resolver_Works_EndToEnd_ThroughDicannot delete its temp DB because the file is still open — callSqliteConnection.ClearAllPools()(or ClearPool) before deleting.Dpapi_RoundTripsOnWindowsfailed once, then passed 3 runs — watch it.Result today: 222/225 on windev with these 3 failing on old and new code.
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.