Skip to content

Commit 3092d86

Browse files
committed
Increasing the tolerance for Mono Runtime for the flaky ProcessThreadTests.TestStartTimeProperty test, fixes dotnet#103448
1 parent 25a5085 commit 3092d86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libraries/System.Diagnostics.Process/tests/ProcessThreadTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public void TestStartTimeProperty_OSX()
111111
[PlatformSpecific(TestPlatforms.Linux|TestPlatforms.Windows)] // OSX and FreeBSD throw PNSE from StartTime
112112
public async Task TestStartTimeProperty()
113113
{
114-
TimeSpan allowedWindow = TimeSpan.FromSeconds(2);
114+
TimeSpan allowedWindow = PlatformDetection.IsMonoRuntime
115+
? TimeSpan.FromSeconds(15)
116+
: TimeSpan.FromSeconds(2);
115117

116118
using (Process p = Process.GetCurrentProcess())
117119
{

0 commit comments

Comments
 (0)