Skip to content

Commit cf1bf3b

Browse files
committed
wip: remove start-sleep directives
Signed-off-by: Damien Duportal <[email protected]>
1 parent bbdce5f commit cf1bf3b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/sshAgent.Tests.ps1

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,6 @@ Describe "[$global:IMAGE_NAME] create agent container with pubkey as argument" {
153153
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
154154
$exitCode | Should -Be 0
155155
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
156-
Start-Sleep -Seconds 10
157-
}
158-
159-
It 'can check running containers' {
160-
$exitCode, $stdout, $stderr = Run-Program 'docker' "container ls"
161-
$exitCode | Should -Be 0
162-
}
163-
164-
It 'can get logs of running container' {
165-
$exitCode, $stdout, $stderr = Run-Program 'docker' "logs `"$global:CONTAINERNAME`""
166-
$exitCode | Should -Be 0
167156
}
168157

169158
It 'runs commands via ssh' {
@@ -182,14 +171,12 @@ Describe "[$global:IMAGE_NAME] create agent container with pubkey as envvar" {
182171
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all `"$global:IMAGE_NAME`" `"$global:PUBLIC_SSH_KEY`""
183172
$exitCode | Should -Be 0
184173
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
185-
Start-Sleep -Seconds 10
186174
}
187175

188176
It 'runs commands via ssh' {
189177
$exitCode, $stdout, $stderr = Run-ThruSSH $global:CONTAINERNAME "$global:PRIVATE_SSH_KEY" "$global:CONTAINERSHELL -NoLogo -C `"Write-Host 'f00'`""
190178
$exitCode | Should -Be 0
191179
$stdout | Should -Match 'f00'
192-
Start-Sleep -Seconds 10
193180
}
194181

195182
AfterAll {
@@ -205,7 +192,6 @@ Describe "[$global:IMAGE_NAME] create agent container like docker-plugin with '$
205192
$exitCode, $stdout, $stderr = Run-Program 'docker' "run --detach --tty --name=`"$global:CONTAINERNAME`" --publish-all --env=`"JENKINS_AGENT_SSH_PUBKEY=$global:PUBLIC_SSH_KEY`" `"$global:IMAGE_NAME`" `"$global:DOCKER_PLUGIN_DEFAULT_ARG`""
206193
$exitCode | Should -Be 0
207194
Is-ContainerRunning $global:CONTAINERNAME | Should -BeTrue
208-
Start-Sleep -Seconds 10
209195
}
210196

211197
It 'runs commands via ssh' {

0 commit comments

Comments
 (0)