rescue LXCError is shutdown does not work, so that stop method is reachable
This commit is contained in:
parent
a453b51005
commit
a7d9379f2b
|
@ -16,7 +16,7 @@ class TestLXCRunning < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
@container.shutdown(3)
|
@container.shutdown(3) rescue nil
|
||||||
if @container.running?
|
if @container.running?
|
||||||
@container.stop
|
@container.stop
|
||||||
@container.wait(:stopped, 3)
|
@container.wait(:stopped, 3)
|
||||||
|
|
Loading…
Reference in a new issue