Skip to content

Commit 7ca4fb1

Browse files
author
Ulysses Souza
committed
Add 'sleep 2' to avoid race condition on attach
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 1b572a4 commit 7ca4fb1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/integration/api_container_test.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1267,12 +1267,9 @@ def test_attach_no_stream(self):
12671267
@pytest.mark.timeout(5)
12681268
@pytest.mark.skipif(os.environ.get('DOCKER_HOST', '').startswith('ssh://'),
12691269
reason='No cancellable streams over SSH')
1270-
@pytest.mark.xfail(condition=os.environ.get('DOCKER_TLS_VERIFY') or
1271-
os.environ.get('DOCKER_CERT_PATH'),
1272-
reason='Flaky test on TLS')
12731270
def test_attach_stream_and_cancel(self):
12741271
container = self.client.create_container(
1275-
BUSYBOX, 'sh -c "echo hello && sleep 60"',
1272+
BUSYBOX, 'sh -c "sleep 2 && echo hello && sleep 60"',
12761273
tty=True
12771274
)
12781275
self.tmp_containers.append(container)

0 commit comments

Comments
 (0)