File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1267,19 +1267,16 @@ 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 )
12791276 self .client .start (container )
12801277 output = self .client .attach (container , stream = True , logs = True )
12811278
1282- threading .Timer (1 , output .close ).start ()
1279+ threading .Timer (3 , output .close ).start ()
12831280
12841281 lines = []
12851282 for line in output :
You can’t perform that action at this time.
0 commit comments