Merge pull request #910 from sameo/topic/bats

test: Add timeout before checking for status
This commit is contained in:
Antonio Murdaca 2017-12-01 13:30:13 +01:00 committed by GitHub
commit 910cfab6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ function teardown() {
run crictl start "$ctr_id"
echo "$output"
[ "$status" -eq 0 ]
run sleep 5
run crictl inspect --output yaml "$ctr_id"
echo "$output"
[ "$status" -eq 0 ]
@ -53,6 +54,7 @@ function teardown() {
run crictl start "$ctr_id"
echo "$output"
[ "$status" -eq 0 ]
run sleep 5
run crictl inspect --output yaml "$ctr_id"
echo "$output"
[ "$status" -eq 0 ]