Tests: Increase timeouts even more in CI

Have I ever mentioned I hate this?
This commit is contained in:
Fabian Homborg
2021-07-12 18:45:46 +02:00
parent e212064978
commit 7789651b8a
2 changed files with 12 additions and 4 deletions

View File

@@ -41,14 +41,18 @@ expect_prompt("\r\nmode changes: default insert default insert\r\n")
send("set -e MODE_CHANGES\r")
expect_prompt()
timeout = 0.15
if "CI" in os.environ:
timeout = 1.0
# Put some text on the command line and then go back to normal mode.
send("echo stuff")
sp.expect_str("echo stuff")
send("\033")
sleep(0.150)
sleep(timeout)
os.kill(sp.spawn.pid, signal.SIGINT)
sleep(0.150)
sleep(timeout)
# We should be back in insert mode now.
send("echo mode changes: $MODE_CHANGES\r")