Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Describe 'ActionPreference.Break tests' -tag 'CI' {
}

It 'ActionPreference.Break should break in a running job' {
Wait-UntilTrue -sb { $job.State -eq 'AtBreakpoint' } -TimeoutInMilliseconds (10 * 1000) -IntervalInMilliseconds 100 | Should -BeTrue
Wait-UntilTrue -sb { $job.State -eq 'AtBreakpoint' } -TimeoutInMilliseconds (60 * 1000) -IntervalInMilliseconds 100 | Should -BeTrue
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ function Wait-JobPid {
)

# This is to prevent hanging in the test.
# Some test environments (such as raspberry_pi) require more time for background job to run.
$startTime = [DateTime]::Now
$TimeoutInMilliseconds = 10000
$TimeoutInMilliseconds = 60000

# This will receive the pid of the Job process and nothing more since that was the only thing written to the pipeline.
do {
Expand Down
2 changes: 1 addition & 1 deletion test/powershell/SDK/Breakpoint.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Describe 'Breakpoint SDK Unit Tests' -Tags 'CI' {
# Wait for the child job that gets created to hit the breakpoint. This is the
# only safe way to know that the job has actually entered a running state and
# that the remote runspace is listening for requests.
Wait-UntilTrue { $job.ChildJobs.Count -gt 0 -and $job.ChildJobs[0].State -eq 'AtBreakpoint' } -TimeoutInMilliseconds 10000 -IntervalInMilliseconds 250
Wait-UntilTrue { $job.ChildJobs.Count -gt 0 -and $job.ChildJobs[0].State -eq 'AtBreakpoint' } -TimeoutInMilliseconds 60000 -IntervalInMilliseconds 250

# Get the runspace for the running job
$jobRunspace = $job.ChildJobs[0].Runspace
Expand Down
5 changes: 3 additions & 2 deletions test/powershell/engine/Remoting/PSSession.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ Describe "SkipCACheck and SkipCNCheck PSSession options are required for New-PSS
It "<Name>" -TestCases $testCases {
param ($scriptBlock, $expectedErrorCode)

if ( (Get-PlatformInfo) -eq "alpine" ) {
Set-ItResult -Pending -Because "MI library not available for Alpine"
$platformInfo = Get-PlatformInfo
if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian")) {
Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi"
return
}

Expand Down
15 changes: 9 additions & 6 deletions test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ Import-Module HelpersCommon

Describe "New-PSSession basic test" -Tag @("CI") {
It "New-PSSession should not crash powershell" {
if ( (Get-PlatformInfo) -eq "alpine" ) {
Set-ItResult -Pending -Because "MI library not available for Alpine"
$platformInfo = Get-PlatformInfo
if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian")) {
Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi"
return
}

Expand All @@ -17,8 +18,9 @@ Describe "New-PSSession basic test" -Tag @("CI") {

Describe "Basic Auth over HTTP not allowed on Unix" -Tag @("CI") {
It "New-PSSession should throw when specifying Basic Auth over HTTP on Unix" -skip:($IsWindows) {
if ( (Get-PlatformInfo) -eq "alpine" ) {
Set-ItResult -Pending -Because "MI library not available for Alpine"
$platformInfo = Get-PlatformInfo
if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian")) {
Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi"
return
}

Expand All @@ -33,8 +35,9 @@ Describe "Basic Auth over HTTP not allowed on Unix" -Tag @("CI") {
}

It "New-PSSession should NOT throw a ConnectFailed exception when specifying Basic Auth over HTTPS on Unix" -skip:($IsWindows) {
if ( (Get-PlatformInfo) -eq "alpine" ) {
Set-ItResult -Pending -Because "MI library not available for Alpine"
$platformInfo = Get-PlatformInfo
if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian") ) {
Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi"
return
}

Expand Down