Fix the test by removing sleep and ensuring cleanup
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
89c051f81f
commit
fd91998ef3
1 changed files with 6 additions and 1 deletions
|
@ -20,11 +20,16 @@ function teardown() {
|
|||
id="$output"
|
||||
run ocic pod stop --id "$id"
|
||||
[ "$status" -eq 0 ]
|
||||
sleep 1 # FIXME: there's a race between container kill and delete below
|
||||
run ocic pod remove --id "$id"
|
||||
[ "$status" -eq 0 ]
|
||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||
[ "$status" -eq 0 ]
|
||||
echo "$output"
|
||||
id="$output"
|
||||
run ocic pod stop --id "$id"
|
||||
[ "$status" -eq 0 ]
|
||||
run ocic pod remove --id "$id"
|
||||
[ "$status" -eq 0 ]
|
||||
stop_ocid
|
||||
cleanup_pods
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue