diff options
author | Andrew Lewis <nerf@judo.za.org> | 2024-08-26 12:11:50 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2024-08-26 12:11:50 +0200 |
commit | f66f742cecba5a0986c7626f8de7d51f267a8874 (patch) | |
tree | bb8eb5cab7cc935938a0c571e5608870baa823fa | |
parent | 366e875b82d1e2ae6b7987b9eaabc5c1afca089c (diff) | |
download | rspamd-f66f742cecba5a0986c7626f8de7d51f267a8874.tar.gz rspamd-f66f742cecba5a0986c7626f8de7d51f267a8874.zip |
[Test] Improve on previous changes
- Remove unnecessary process waiting
- Relax retry time
-rw-r--r-- | test/functional/lib/rspamd.robot | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/lib/rspamd.robot b/test/functional/lib/rspamd.robot index 559ec667b..de4e5285f 100644 --- a/test/functional/lib/rspamd.robot +++ b/test/functional/lib/rspamd.robot @@ -345,19 +345,19 @@ Run Rspamd Export Scoped Variables ${RSPAMD_SCOPE} RSPAMD_PROCESS=${result} # Confirm worker is reachable - FOR ${index} IN RANGE 75 + FOR ${index} IN RANGE 37 ${ok} = Rspamd Startup Check ${check_port} IF ${ok} CONTINUE - Sleep 0.1s + Sleep 0.4s END Rspamd Startup Check [Arguments] ${check_port}=${RSPAMD_PORT_NORMAL} - ${res} = Wait For Process ${RSPAMD_PROCESS} 0.1s ${handle} = Get Process Object ${res} = Evaluate $handle.poll() IF ${res} != None - Fail Process Is Gone + ${stderr} = Get File ${RSPAMD_TMPDIR}/rspamd.stderr + Fail Process Is Gone, stderr: ${stderr} END ${ping} = Run Keyword And Return Status Ping Rspamd ${RSPAMD_LOCAL_ADDR} ${check_port} [Return] ${ping} |