Skip to content

Commit ff8c9bb

Browse files
committed
Fixed integration tests
1 parent 3fc69ab commit ff8c9bb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/integration_test.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import docker
2626
import six
2727

28-
from tests.test import Cleanup
28+
from test import Cleanup
2929

3030
# FIXME: missing tests for
3131
# export; history; import_image; insert; port; push; tag; get; load
@@ -426,7 +426,7 @@ def runTest(self):
426426
id = container['Id']
427427
self.client.start(id)
428428
self.tmp_containers.append(id)
429-
self.client.kill(id, signal=signal.SIGTERM)
429+
self.client.kill(id, signal=signal.SIGKILL)
430430
exitcode = self.client.wait(id)
431431
self.assertNotEqual(exitcode, 0)
432432
container_info = self.client.inspect_container(id)
@@ -618,10 +618,8 @@ def runTest(self):
618618
container = self.client.create_container('busybox', ['false'])
619619
id = container['Id']
620620
self.client.start(id, restart_policy={
621-
{
622-
"Name": "on-failure",
623-
"MaximumRetryCount": 1
624-
}
621+
"Name": "on-failure",
622+
"MaximumRetryCount": 1
625623
})
626624
self.client.wait(id)
627625
self.client.remove_container(id)

0 commit comments

Comments
 (0)