We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a382c1 commit 4167dedCopy full SHA for 4167ded
src/Shared/TaskExtensions.cs
@@ -22,7 +22,13 @@ namespace System.Threading.Tasks.Extensions
22
#endif
23
static class TaskExtensions
24
{
25
+#if DEBUG
26
+ // Shorter duration when running tests with debug.
27
+ // Less time waiting for hang unit tests to fail in aspnetcore solution.
28
+ private const int DefaultTimeoutDuration = 5 * 1000;
29
+#else
30
private const int DefaultTimeoutDuration = 30 * 1000;
31
+#endif
32
33
public static TimeSpan DefaultTimeoutTimeSpan { get; } = TimeSpan.FromMilliseconds(DefaultTimeoutDuration);
34
0 commit comments