test: fix readme and sleep just 1

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-09-27 10:46:17 +02:00
parent ab8b65b09e
commit 22cd20e705
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
2 changed files with 1 additions and 2 deletions

View file

@ -59,7 +59,6 @@ function setup() {
# teardown is called at the end of every test. # teardown is called at the end of every test.
function teardown() { function teardown() {
stop_ocid
cleanup_test cleanup_test
} }

View file

@ -19,7 +19,7 @@ function teardown() {
id="$output" id="$output"
run ocic pod stop --id "$id" run ocic pod stop --id "$id"
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
sleep 5 # FIXME: there's a race between container kill and delete below sleep 1 # FIXME: there's a race between container kill and delete below
run ocic pod remove --id "$id" run ocic pod remove --id "$id"
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
run ocic pod create --config "$TESTDATA"/sandbox_config.json run ocic pod create --config "$TESTDATA"/sandbox_config.json