Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
test(registry): accept the protected-hive wording in the HKLM denial test
fatDuckefe8f4ebf1f8
diff --git a/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.cs b/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.csindex 5f9ac33..f854df0 100644--- a/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.cs+++ b/optimizerDuck.Test/Services/OptimizationServices/RegistryServiceTests.cs@@ -37,7 +37,18 @@ public class RegistryServiceTests : IDisposableAssert.False(result.Ok);var change = Assert.Single(call.Changes.Changes);Assert.False(change.Ok);- Assert.Equal(ServiceStrings.CommonErrorAccessDenied, change.Error);+ // A protected hive is refused while its key is opened, which the service reports as its own+ // wording; an ordinary ACL denial on the value write reports the shared access-denied text.+ // Both are the same refusal to the caller, so the wording is not pinned to one of them.+ Assert.NotNull(change.Error);+ Assert.Contains(+ change.Error,+ new[]+ {+ ServiceStrings.CommonErrorAccessDenied,+ ServiceStrings.RegistryErrorAccessDeniedProtectedHive,+ }+ );Assert.Null(change.Revert);}