From 3fcf4e1b20734c625eacacc92aabdc7c20810d62 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 2 Sep 2020 18:08:29 +0200 Subject: [PATCH] tests: Shorten a sleep This waited for a full second just to call `wait`. Instead let's use 300ms, saving a full 700ms per test run. --- tests/pexpects/wait.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pexpects/wait.py b/tests/pexpects/wait.py index b385c9aae..cca1e85ec 100644 --- a/tests/pexpects/wait.py +++ b/tests/pexpects/wait.py @@ -13,10 +13,10 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = ( expect_prompt() # one background job -sendline("sleep 1 &") +sendline("sleep .3 &") expect_prompt() sendline("wait") -expect_prompt("Job 1, 'sleep 1 &' has ended") +expect_prompt("Job 1, 'sleep .3 &' has ended") sendline("jobs") expect_prompt("jobs: There are no jobs")