rescue LXCError is shutdown does not work, so that stop method is reachable

This commit is contained in:
Ranjib Dey 2014-02-07 14:57:13 -08:00
parent a453b51005
commit a7d9379f2b

View file

@ -16,7 +16,7 @@ class TestLXCRunning < Test::Unit::TestCase
end
def teardown
@container.shutdown(3)
@container.shutdown(3) rescue nil
if @container.running?
@container.stop
@container.wait(:stopped, 3)