Remove service.start_container()
It has been an unnecessary wrapper around container.start() for a little while now, so we can call it directly. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
3daecfa8e4
commit
e317d2db9d
5 changed files with 22 additions and 26 deletions
|
|
@ -599,7 +599,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
def test_restart(self):
|
||||
service = self.project.get_service('simple')
|
||||
container = service.create_container()
|
||||
service.start_container(container)
|
||||
container.start()
|
||||
started_at = container.dictionary['State']['StartedAt']
|
||||
self.command.dispatch(['restart', '-t', '1'], None)
|
||||
container.inspect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue