mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
fix a unit test that periodically fails
if you run this test *a lot*, it fails - seemingly due to a bug in pexpect itself and how it handles stdout buffering; introducing a bit of latency seems to make the issue go away see: #7171
This commit is contained in:
parent
52f8579c04
commit
83ac761d81
@ -89,7 +89,7 @@ def test_password_prompt():
|
||||
expect_passwords = OrderedDict()
|
||||
expect_passwords[re.compile(r'Password:\s*?$', re.M)] = 'secret123'
|
||||
status, rc = run.run_pexpect(
|
||||
['python', '-c', 'print raw_input("Password: ")'],
|
||||
['python', '-c', 'import time; print raw_input("Password: "); time.sleep(.05)'],
|
||||
HERE,
|
||||
{},
|
||||
stdout,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user