Kaydet (Commit) 5ed73c03 authored tarafından Damien Nadé's avatar Damien Nadé Kaydeden (comit) Joffrey F

Fixed events command related unit tests by passing a timeout value

Signed-off-by: 's avatarDamien Nadé <github@livna.org>
üst f5b56023
...@@ -228,7 +228,8 @@ class DockerApiTest(BaseAPIClientTest): ...@@ -228,7 +228,8 @@ class DockerApiTest(BaseAPIClientTest):
'GET', 'GET',
url_prefix + 'events', url_prefix + 'events',
params={'since': None, 'until': None, 'filters': None}, params={'since': None, 'until': None, 'filters': None},
stream=True stream=True,
timeout=DEFAULT_TIMEOUT_SECONDS
) )
def test_events_with_since_until(self): def test_events_with_since_until(self):
...@@ -247,7 +248,8 @@ class DockerApiTest(BaseAPIClientTest): ...@@ -247,7 +248,8 @@ class DockerApiTest(BaseAPIClientTest):
'until': ts + 10, 'until': ts + 10,
'filters': None 'filters': None
}, },
stream=True stream=True,
timeout=DEFAULT_TIMEOUT_SECONDS
) )
def test_events_with_filters(self): def test_events_with_filters(self):
...@@ -265,7 +267,8 @@ class DockerApiTest(BaseAPIClientTest): ...@@ -265,7 +267,8 @@ class DockerApiTest(BaseAPIClientTest):
'until': None, 'until': None,
'filters': expected_filters 'filters': expected_filters
}, },
stream=True stream=True,
timeout=DEFAULT_TIMEOUT_SECONDS
) )
def _socket_path_for_client_session(self, client): def _socket_path_for_client_session(self, client):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment