tests should not fail if there are pre-existing containers

This commit is contained in:
Ranjib Dey 2014-01-15 00:49:23 -08:00
parent 519b08a497
commit a98bc364a3
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class TestLXCClassMethods < Test::Unit::TestCase
end
def test_list_containers
assert_equal([@name], LXC.list_containers)
assert(LXC.list_containers.include?('test'))
end
def test_arch_to_personality

View file

@ -103,7 +103,7 @@ class TestLXCRunning < Test::Unit::TestCase
def test_container_listed
containers = LXC.list_containers
assert_equal(1, containers.length)
assert_equal(@name, containers.first)
assert(containers.length > 0)
assert(containers.include?(@name))
end
end