Shutdown the container before stopping it

This commit is contained in:
Andre Nathan 2013-12-06 14:01:31 -02:00
parent d35c0be1e4
commit 9b2372ba10

View file

@ -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