add sleep to pester test

This commit is contained in:
Tess Gauthier 2022-09-21 13:09:53 -04:00
parent bb847f99bc
commit d215e7333f

View File

@ -172,7 +172,7 @@ Describe "Tests for scp command" -Tags "CI" {
It 'File copy: <Title> ' -TestCases:$testData { It 'File copy: <Title> ' -TestCases:$testData {
param([string]$Title, $Source, $Destination, [string]$Options) param([string]$Title, $Source, $Destination, [string]$Options)
Start-Sleep -Seconds 60
iex "scp $Options $Source $Destination" iex "scp $Options $Source $Destination"
$LASTEXITCODE | Should Be 0 $LASTEXITCODE | Should Be 0
#validate file content. DestPath is the path to the file. #validate file content. DestPath is the path to the file.