Skip to content

Commit a1bc812

Browse files
committed
Fixed race-condition in PostponedActionWithStateIsCompletedByWatchDog test
1 parent 941a31f commit a1bc812

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Core/Cleipnir.ResilientFunctions.Tests/TestTemplates/RFunctionTests/PostponedTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ protected async Task PostponedActionWithStateIsCompletedByWatchDog(Task<IFunctio
187187
store,
188188
new Settings(
189189
unhandledExceptionHandler.Catch,
190-
leaseLength: TimeSpan.Zero,
191190
watchdogCheckFrequency: TimeSpan.Zero
192191
)
193192
);
@@ -206,8 +205,7 @@ await Should.ThrowAsync<FunctionInvocationPostponedException>(() =>
206205
store,
207206
new Settings(
208207
unhandledExceptionHandler.Catch,
209-
leaseLength: TimeSpan.Zero,
210-
watchdogCheckFrequency: TimeSpan.FromMilliseconds(10)
208+
watchdogCheckFrequency: TimeSpan.FromMilliseconds(250)
211209
)
212210
);
213211

0 commit comments

Comments
 (0)