@@ -36,7 +36,7 @@ Describe "Invoke-Item basic tests" -Tags "CI" { |
36 | 36 | Invoke-Item -Path $TestFile |
37 | 37 | $startTime = Get-Date |
38 | 38 | $title = [String]::Empty |
39 | | - while (((Get-Date) - $startTime).TotalSeconds -lt 5 -and ($title -ne $expectedTitle)) |
| 39 | + while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and ($title -ne $expectedTitle)) |
40 | 40 | { |
41 | 41 | Start-Sleep -Milliseconds 100 |
42 | 42 | $title = 'tell application "TextEdit" to get name of front window' | osascript |
@@ -111,7 +111,7 @@ Categories=Application; |
111 | 111 | Invoke-Item -Path $PSHOME |
112 | 112 | $startTime = Get-Date |
113 | 113 | # may take time for explorer to open window |
114 | | - while (((Get-Date) - $startTime).TotalSeconds -lt 5 -and ($windows.Count -eq $before)) |
| 114 | + while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and ($windows.Count -eq $before)) |
115 | 115 | { |
116 | 116 | Start-Sleep -Milliseconds 100 |
117 | 117 | } |
@@ -129,7 +129,7 @@ Categories=Application; |
129 | 129 | Invoke-Item -Path $PSHOME |
130 | 130 | $startTime = Get-Date |
131 | 131 | # may take time for handler to start |
132 | | - while (((Get-Date) - $startTime).TotalSeconds -lt 5 -and (-not (Test-Path "$HOME/InvokeItemTest.Success"))) |
| 132 | + while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and (-not (Test-Path "$HOME/InvokeItemTest.Success"))) |
133 | 133 | { |
134 | 134 | Start-Sleep -Milliseconds 100 |
135 | 135 | } |
@@ -143,7 +143,7 @@ Categories=Application; |
143 | 143 | $startTime = Get-Date |
144 | 144 | $expectedTitle = Split-Path $PSHOME -Leaf |
145 | 145 | $title = [String]::Empty |
146 | | - while (((Get-Date) - $startTime).TotalSeconds -lt 5 -and ($title -ne $expectedTitle)) |
| 146 | + while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and ($title -ne $expectedTitle)) |
147 | 147 | { |
148 | 148 | Start-Sleep -Milliseconds 100 |
149 | 149 | $title = 'tell application "Finder" to get name of front window' | osascript |
|