Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProcessThreadTests.TestStartTimeProperty - Get spawned thread by ID from Process.Threads to avoid mismatch #104972

Merged
merged 6 commits into from
Jul 22, 2024
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
Loading