GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — increased timeout for waiting for window to open · PowerShell/PowerShell@4a4cd71

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/powershell/Modules/Microsoft.PowerShell.Utility
    • Invoke-Item.Tests.ps1
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1‎

Copy file name to clipboardExpand all lines: test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Describe "Invoke-Item basic tests" -Tags "CI" {
3636
Invoke-Item -Path $TestFile
3737
$startTime = Get-Date
3838
$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))
4040
{
4141
Start-Sleep -Milliseconds 100
4242
$title = 'tell application "TextEdit" to get name of front window' | osascript
@@ -111,7 +111,7 @@ Categories=Application;
111111
Invoke-Item -Path $PSHOME
112112
$startTime = Get-Date
113113
# 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))
115115
{
116116
Start-Sleep -Milliseconds 100
117117
}
@@ -129,7 +129,7 @@ Categories=Application;
129129
Invoke-Item -Path $PSHOME
130130
$startTime = Get-Date
131131
# 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")))
133133
{
134134
Start-Sleep -Milliseconds 100
135135
}
@@ -143,7 +143,7 @@ Categories=Application;
143143
$startTime = Get-Date
144144
$expectedTitle = Split-Path $PSHOME -Leaf
145145
$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))
147147
{
148148
Start-Sleep -Milliseconds 100
149149
$title = 'tell application "Finder" to get name of front window' | osascript

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.