From 9b2372ba10e37a2aab83a206770cdb89e5d2bd94 Mon Sep 17 00:00:00 2001 From: Andre Nathan Date: Fri, 6 Dec 2013 14:01:31 -0200 Subject: [PATCH] Shutdown the container before stopping it --- test/tc_lxc_running.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/tc_lxc_running.rb b/test/tc_lxc_running.rb index f66ccdb..9118c36 100644 --- a/test/tc_lxc_running.rb +++ b/test/tc_lxc_running.rb @@ -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