From 5340b8fcc5cb80abad6fb2c019d403a862be473a Mon Sep 17 00:00:00 2001 From: martintmk Date: Wed, 12 Apr 2023 19:41:47 +0200 Subject: [PATCH] build fix --- .../Timeout/TimeoutResilienceStrategyBuilderExtensionsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Polly.Core.Tests/Timeout/TimeoutResilienceStrategyBuilderExtensionsTests.cs b/src/Polly.Core.Tests/Timeout/TimeoutResilienceStrategyBuilderExtensionsTests.cs index 2c183ed7f12..616c5ff653f 100644 --- a/src/Polly.Core.Tests/Timeout/TimeoutResilienceStrategyBuilderExtensionsTests.cs +++ b/src/Polly.Core.Tests/Timeout/TimeoutResilienceStrategyBuilderExtensionsTests.cs @@ -71,7 +71,7 @@ public void AddTimeout_InvalidOptions_Throws() .Throw().WithMessage("The timeout strategy options are invalid.*"); } - private static TimeSpan GetTimeout(TimeoutResilienceStrategy strategy) => strategy.GetTimeoutAsync(ResilienceContext.Get()).GetAwaiter().GetResult(); + private static TimeSpan GetTimeout(TimeoutResilienceStrategy strategy) => strategy.GetTimeoutAsync(ResilienceContext.Get()).Preserve().GetAwaiter().GetResult(); private static void OnTimeout(TimeoutResilienceStrategy strategy) {