We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 45b5070 + 0ec9961 commit b9466aeCopy full SHA for b9466ae
1 file changed
tests/Validation.PackageSigning.Core.Tests/Support/CertificateIntegrationTestFixture.cs
@@ -338,7 +338,11 @@ public async Task<TimestampServiceWithUnavailableRevocation> CreateTimestampServ
338
StoreLocation.LocalMachine);
339
340
var timestampService = TimestampService.Create(rootCa);
341
- var disposable = new DisposableList<IDisposable> { rootCertificate, trust };
+
342
+ // Do not add `rootCertificate`, because its disposal will cause subsequent disposal
343
+ // of `trust` to fail and trust removal to fail.
344
+ // Disposing `trust` already disposes `rootCertificate`.
345
+ var disposable = new DisposableList<IDisposable> { trust };
346
347
Task WaitForResponseExpirationAsync()
348
{
0 commit comments