mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
fork process may finish before cancel callback
* The "should we cancel?" callback check is only called while the subprocess (child) is alive. If the child executes quickly, the cancel callback has no chance to run. * call a subprocess that takes longer to run like sleep 2
This commit is contained in:
@@ -90,7 +90,7 @@ def test_cancel_callback_error():
|
|||||||
|
|
||||||
extra_fields = {}
|
extra_fields = {}
|
||||||
status, rc = run.run_pexpect(
|
status, rc = run.run_pexpect(
|
||||||
['ls', '-la'],
|
['sleep', '2'],
|
||||||
HERE,
|
HERE,
|
||||||
{},
|
{},
|
||||||
stdout,
|
stdout,
|
||||||
|
|||||||
Reference in New Issue
Block a user