Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
test: stabilize RegistryWatcher multiple watchers test for CI
fatDuck27e21c735994
diff --git a/optimizerDuck.Test/Services/RegistryWatcherTests.cs b/optimizerDuck.Test/Services/RegistryWatcherTests.csindex d448785..da12290 100644--- a/optimizerDuck.Test/Services/RegistryWatcherTests.cs+++ b/optimizerDuck.Test/Services/RegistryWatcherTests.cs@@ -162,8 +162,8 @@ public class RegistryWatcherTests : IDisposablewatcher.Watch(pathA);watcher.Watch(pathB);- // Give watcher threads time to block on RegNotifyChangeKeyValue- await Task.Delay(500, TestContext.Current.CancellationToken);+ // Give watcher threads time to block on RegNotifyChangeKeyValue, CI can be slower+ await Task.Delay(1000, TestContext.Current.CancellationToken);// Write to path Ausing (var keyA = Registry.CurrentUser.OpenSubKey(pathANative, writable: true))@@ -181,11 +181,11 @@ public class RegistryWatcherTests : IDisposablevar completedA = await Task.WhenAny(tcsA.Task,- Task.Delay(5000, TestContext.Current.CancellationToken)+ Task.Delay(10000, TestContext.Current.CancellationToken));var completedB = await Task.WhenAny(tcsB.Task,- Task.Delay(5000, TestContext.Current.CancellationToken)+ Task.Delay(10000, TestContext.Current.CancellationToken));Assert.Equal(tcsA.Task, completedA);