26 references to ProcessTestHelpers
Aspire.Cli.Tests (26)
Certificates\UnixCertificateManagerTests.cs (6)
432parentPid = await ProcessTestHelpers.WaitForProcessIdAsync(parentPidFile, TestContext.Current.CancellationToken) 434childPid = await ProcessTestHelpers.WaitForProcessIdAsync(childPidFile, TestContext.Current.CancellationToken) 440Assert.True(ProcessTestHelpers.WaitForProcessExit(parentPid, TimeSpan.FromSeconds(10)), $"Expected certutil process {parentPid} to exit."); 441Assert.True(ProcessTestHelpers.WaitForProcessExit(childPid, TimeSpan.FromSeconds(10)), $"Expected child process {childPid} to exit."); 446ProcessTestHelpers.TryKillProcess(parentPid); 447ProcessTestHelpers.TryKillProcess(childPid);
Configuration\ConfigSourceServiceGitTests.cs (1)
236var pid = await ProcessTestHelpers.WaitForProcessIdAsync(pidFile, cancellation.Token);
DotNet\ProcessExecutionFactoryEnvironmentTests.cs (1)
75var shim = ProcessTestHelpers.CreateScript(directory, "npm", "exit 0",
DotNet\ProcessExecutionTests.cs (1)
15using static Aspire.Cli.Tests.TestServices.ProcessTestHelpers;
DotNetSdkInstallerTests.cs (6)
67parentPid = await ProcessTestHelpers.WaitForProcessIdAsync(parentPidFile, TestContext.Current.CancellationToken) 69childPid = await ProcessTestHelpers.WaitForProcessIdAsync(childPidFile, TestContext.Current.CancellationToken) 75Assert.True(ProcessTestHelpers.WaitForProcessExit(parentPid, TimeSpan.FromSeconds(10)), $"Expected dotnet process {parentPid} to exit."); 76Assert.True(ProcessTestHelpers.WaitForProcessExit(childPid, TimeSpan.FromSeconds(10)), $"Expected child process {childPid} to exit."); 81ProcessTestHelpers.TryKillProcess(parentPid); 82ProcessTestHelpers.TryKillProcess(childPid);
Projects\GuestAppHostProjectTests.cs (10)
173ProcessTestHelpers.CreateScript( 186var guestInstaller = ProcessTestHelpers.CreateScript( 330var npmPath = ProcessTestHelpers.CreateScript( 360var npmPath = ProcessTestHelpers.CreateScript( 381parentPid = await ProcessTestHelpers.WaitForProcessIdAsync(Path.Combine(directory.FullName, "parent.pid"), readinessCts.Token); 382childPid = await ProcessTestHelpers.WaitForProcessIdAsync(Path.Combine(directory.FullName, "child.pid"), readinessCts.Token); 387Assert.True(ProcessTestHelpers.WaitForProcessExit(parentPid.Value, TimeSpan.FromSeconds(5))); 388Assert.True(ProcessTestHelpers.WaitForProcessExit(childPid.Value, TimeSpan.FromSeconds(5))); 395ProcessTestHelpers.TryKillProcess(child); 399ProcessTestHelpers.TryKillProcess(parent);
Projects\ProcessGuestLauncherTests.cs (1)
11using static Aspire.Cli.Tests.TestServices.ProcessTestHelpers;