Skip to content

Commit

Permalink
Increasing the tolerance for Mono Runtime for the flaky ProcessThread…
Browse files Browse the repository at this point in the history
…Tests.TestStartTimeProperty test, fixes dotnet#103448
  • Loading branch information
adamsitnik committed Jul 16, 2024
1 parent 25a5085 commit 3092d86
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public void TestStartTimeProperty_OSX()
[PlatformSpecific(TestPlatforms.Linux|TestPlatforms.Windows)] // OSX and FreeBSD throw PNSE from StartTime
public async Task TestStartTimeProperty()
{
TimeSpan allowedWindow = TimeSpan.FromSeconds(2);
TimeSpan allowedWindow = PlatformDetection.IsMonoRuntime
? TimeSpan.FromSeconds(15)
: TimeSpan.FromSeconds(2);

using (Process p = Process.GetCurrentProcess())
{
Expand Down

0 comments on commit 3092d86

Please sign in to comment.