summaryrefslogtreecommitdiff
path: root/tests/test_expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_expect.py')
-rwxr-xr-xtests/test_expect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py
index 243bc34..c9087f4 100755
--- a/tests/test_expect.py
+++ b/tests/test_expect.py
@@ -456,7 +456,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase):
child = pexpect.spawn('cat', echo=False)
child.sendline('BEGIN')
for i in range(100):
- child.sendline('foo' * 100)
+ child.sendline('foo' * 10)
e = child.expect([b'xyzzy', pexpect.TIMEOUT],
searchwindowsize=10, timeout=0.001)
self.assertEqual(e, 1)
@@ -473,7 +473,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase):
child = pexpect.spawn('cat', echo=False)
child.sendline('BEGIN')
for i in range(100):
- child.sendline('foo' * 100)
+ child.sendline('foo' * 10)
e = child.expect([b'xyzzy', pexpect.TIMEOUT],
searchwindowsize=10, timeout=0.5)
self.assertEqual(e, 1)