瀏覽代碼

increase timeout

oz123 11 年之前
父節點
當前提交
b5a420ceba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pwman/tests/test_complete_ui.py

+ 1 - 1
pwman/tests/test_complete_ui.py

@@ -46,7 +46,7 @@ class Ferrum(unittest.TestCase):
         child = pexpect.spawn(os.path.join(os.path.dirname(__file__),
                                            '../../scripts/pwman3')+' -t -k -d '+OLD_DB_PATH)
         #child = pexpect.spawn('../../scripts/pwman3 -t -k -d '+OLD_DB_PATH)
-        child.expect('[\s|\S]+Please enter your password:', timeout=0.5)
+        child.expect('[\s|\S]+Please enter your password:', timeout=5)
         self.assertEqual(6, child.sendline('12345'))
         print child.readlines()