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