Skip to content

Commit

Permalink
revert 1es change
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectsByJackHe committed Jun 14, 2024
1 parent 405e643 commit aae2a05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/secnetperf-helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ function Wait-StartRemoteServerPassive {
for ($i = 0; $i -lt 30; $i++) {
Start-Sleep -Seconds 5 | Out-Null
Write-Host "Attempt $i to start the remote server, command: $FullPath -target:$RemoteName"
$Process = Start-LocalTest $FullPath "-target:$RemoteName" $OutputDir $true
$Process = Start-LocalTest $FullPath "-target:$RemoteName" $OutputDir
$ConsoleOutput = Wait-LocalTest $Process $OutputDir $false 30000 $true
Write-Host "Wait-StartRemoteServerPassive: $ConsoleOutput"
$DidMatch = $ConsoleOutput -match "Completed" # Look for the special string to indicate success.
Expand All @@ -445,9 +445,9 @@ function Wait-StartRemoteServerPassive {

# Creates a new local process to asynchronously run the test.
function Start-LocalTest {
param ($FullPath, $FullArgs, $OutputDir, $is1es = $false)
param ($FullPath, $FullArgs, $OutputDir)
$pinfo = New-Object System.Diagnostics.ProcessStartInfo
if ($IsWindows -and $is1es) {
if ($IsWindows) {
$pinfo.FileName = $FullPath
$pinfo.Arguments = $FullArgs
} else {
Expand Down

0 comments on commit aae2a05

Please sign in to comment.