File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1267,19 +1267,16 @@ def test_attach_no_stream(self):
1267
1267
@pytest .mark .timeout (5 )
1268
1268
@pytest .mark .skipif (os .environ .get ('DOCKER_HOST' , '' ).startswith ('ssh://' ),
1269
1269
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' )
1273
1270
def test_attach_stream_and_cancel (self ):
1274
1271
container = self .client .create_container (
1275
- BUSYBOX , 'sh -c "echo hello && sleep 60"' ,
1272
+ BUSYBOX , 'sh -c "sleep 2 && echo hello && sleep 60"' ,
1276
1273
tty = True
1277
1274
)
1278
1275
self .tmp_containers .append (container )
1279
1276
self .client .start (container )
1280
1277
output = self .client .attach (container , stream = True , logs = True )
1281
1278
1282
- threading .Timer (1 , output .close ).start ()
1279
+ threading .Timer (3 , output .close ).start ()
1283
1280
1284
1281
lines = []
1285
1282
for line in output :
You can’t perform that action at this time.
0 commit comments