Xfail test_attach_stream_and_cancel on TLS

This test is quite flaky on ssl integration test

Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
This commit is contained in:
Ulysses Souza 2019-03-26 15:15:40 +01:00 committed by Joffrey F
parent 37e442aaed
commit ccd9ca4947
1 changed files with 3 additions and 0 deletions

View File

@ -1252,6 +1252,9 @@ class AttachContainerTest(BaseAPIIntegrationTest):
@pytest.mark.timeout(10) @pytest.mark.timeout(10)
@pytest.mark.skipif(os.environ.get('DOCKER_HOST', '').startswith('ssh://'), @pytest.mark.skipif(os.environ.get('DOCKER_HOST', '').startswith('ssh://'),
reason='No cancellable streams over SSH') reason='No cancellable streams over SSH')
@pytest.mark.xfail(condition=os.environ.get('DOCKER_TLS_VERIFY') or
os.environ.get('DOCKER_CERT_PATH'),
reason='Flaky test on TLS')
def test_attach_stream_and_cancel(self): def test_attach_stream_and_cancel(self):
container = self.client.create_container( container = self.client.create_container(
BUSYBOX, 'sh -c "sleep 2 && echo hello && sleep 60"', BUSYBOX, 'sh -c "sleep 2 && echo hello && sleep 60"',