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
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
@container.shutdown(3)
|
||||||
|
if @container.running?
|
||||||
@container.stop
|
@container.stop
|
||||||
|
@container.wait('STOPPED', 3)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_container_running
|
def test_container_running
|
||||||
|
|
Loading…
Reference in a new issue