From 191c15286df08876116293e300b9c451d0a28bef Mon Sep 17 00:00:00 2001 From: Ramez Ragaa Date: Tue, 19 Nov 2024 17:40:50 +0200 Subject: [PATCH] chore: build errors --- src/Uno.UI.RuntimeTests/MUX/Helpers/EventTester.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Uno.UI.RuntimeTests/MUX/Helpers/EventTester.cs b/src/Uno.UI.RuntimeTests/MUX/Helpers/EventTester.cs index f6af9a94b3..7c785844b1 100644 --- a/src/Uno.UI.RuntimeTests/MUX/Helpers/EventTester.cs +++ b/src/Uno.UI.RuntimeTests/MUX/Helpers/EventTester.cs @@ -154,7 +154,14 @@ namespace Microsoft/* UWP don't rename */.UI.Xaml.Tests.Common return new RoutedEventTester(sender, eventName, action); } - public TimeSpan DefaultTimeout = FeatureConfiguration.DebugOptions.WaitIndefinitelyInEventTester ? TimeSpan.FromMilliseconds(-1) : EventTesterConfig.Timeout; + public TimeSpan DefaultTimeout = +#if HAS_UNO + FeatureConfiguration.DebugOptions.WaitIndefinitelyInEventTester +#else + Debugger.IsAttached +#endif + ? TimeSpan.FromMilliseconds(-1) + : EventTesterConfig.Timeout; private TSender Sender {