Make invoke-item test Feature
and increase timeout (#4382)
This commit is contained in:
parent
06d416b954
commit
21f7f36756
|
@ -1,6 +1,6 @@
|
||||||
using namespace System.Diagnostics
|
using namespace System.Diagnostics
|
||||||
|
|
||||||
Describe "Invoke-Item basic tests" -Tags "CI" {
|
Describe "Invoke-Item basic tests" -Tags "Feature" {
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
$powershell = Join-Path $PSHOME -ChildPath powershell
|
$powershell = Join-Path $PSHOME -ChildPath powershell
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ Describe "Invoke-Item basic tests" -Tags "CI" {
|
||||||
Invoke-Item -Path $TestFile
|
Invoke-Item -Path $TestFile
|
||||||
$startTime = Get-Date
|
$startTime = Get-Date
|
||||||
$title = [String]::Empty
|
$title = [String]::Empty
|
||||||
while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and ($title -ne $expectedTitle))
|
while (((Get-Date) - $startTime).TotalSeconds -lt 30 -and ($title -ne $expectedTitle))
|
||||||
{
|
{
|
||||||
Start-Sleep -Milliseconds 100
|
Start-Sleep -Milliseconds 100
|
||||||
$title = 'tell application "TextEdit" to get name of front window' | osascript
|
$title = 'tell application "TextEdit" to get name of front window' | osascript
|
||||||
|
|
Loading…
Reference in a new issue