Skip to content

Commit c2ed665

Browse files
crosbymichaelchris-crone
authored andcommitted
Remove exec detach test
Forking off an exec process and detaching isn't a supported method Signed-off-by: Michael Crosby <[email protected]>
1 parent 1308cfb commit c2ed665

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/integration/api_exec_test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -226,24 +226,6 @@ def test_detach_with_config_file(self):
226226

227227
assert_cat_socket_detached_with_keys(sock, [ctrl_with('p')])
228228

229-
def test_detach_with_arg(self):
230-
self.client._general_configs['detachKeys'] = 'ctrl-p'
231-
container = self.client.create_container(
232-
BUSYBOX, 'cat', detach=True, stdin_open=True
233-
)
234-
id = container['Id']
235-
self.client.start(id)
236-
self.tmp_containers.append(id)
237-
238-
exec_id = self.client.exec_create(
239-
id, 'cat',
240-
stdin=True, tty=True, detach_keys='ctrl-x', stdout=True
241-
)
242-
sock = self.client.exec_start(exec_id, tty=True, socket=True)
243-
self.addCleanup(sock.close)
244-
245-
assert_cat_socket_detached_with_keys(sock, [ctrl_with('x')])
246-
247229

248230
class ExecDemuxTest(BaseAPIIntegrationTest):
249231
cmd = 'sh -c "{}"'.format(' ; '.join([

0 commit comments

Comments
 (0)