Shutdown the container before stopping it
This commit is contained in:
parent
d35c0be1e4
commit
9b2372ba10
|
@ -18,7 +18,11 @@ class TestLXCRunning < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def teardown
|
||||
@container.stop
|
||||
@container.shutdown(3)
|
||||
if @container.running?
|
||||
@container.stop
|
||||
@container.wait('STOPPED', 3)
|
||||
end
|
||||
end
|
||||
|
||||
def test_container_running
|
||||
|
|
Loading…
Reference in a new issue