Skip to content

Commit

Permalink
Rename Wait-CompleteExecution to Wait-UntilTrue
Browse files Browse the repository at this point in the history
  • Loading branch information
vors authored and lzybkr committed Jan 12, 2017
1 parent 684a25b commit f4f576c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/powershell/Common/Test.Helpers.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Wait-CompleteExecution
function Wait-UntilTrue
{
[CmdletBinding()]
param (
Expand Down Expand Up @@ -66,5 +66,5 @@ function ShouldBeErrorId
}
}

export-modulemember -function Wait-CompleteExecution,Test-IsElevated, ShouldBeErrorId
export-modulemember -function Wait-UntilTrue,Test-IsElevated, ShouldBeErrorId

Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Describe "It should be possible to reset runspace debugging" -tag "Feature" {

# Run script file until breakpoint hit.
$ar = $ps.AddScript("$scriptPath").BeginInvoke()
$completed = Wait-CompleteExecution { $rs.Debugger.InBreakPoint -eq $true } -timeout 10000 -interval 200
$completed = Wait-UntilTrue { $rs.Debugger.InBreakPoint -eq $true } -timeout 10000 -interval 200
$ps.Stop()
$rs.ResetRunspaceState()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Describe 'native commands lifecycle' -tags 'Feature' {

# waiting 30 seconds, because powershell startup time could be long on the slow machines,
# such as CI
Wait-CompleteExecution { $rs.RunspaceAvailability -eq 'Available' } -timeout 30000 -interval 100 | Should Be $true
Wait-UntilTrue { $rs.RunspaceAvailability -eq 'Available' } -timeout 30000 -interval 100 | Should Be $true

$ps.Stop()
$rs.ResetRunspaceState()
Expand Down

0 comments on commit f4f576c

Please sign in to comment.