From 27bd5ead08f470b764af207f854798215468f511 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Fri, 20 Dec 2024 19:09:49 -0800 Subject: [PATCH] tests/04-force-resources: lower time for "too fast" There was one report of this test failing because it successfully decrypted the 10-second file in 1 second [*]. This was on a Debian build server, so I suspect that the system was heavily loaded while it created the 10-second file, so `scrypt enc` underestimated the parameters. [*] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086624 Reported by: Sebastian Ramacher --- tests/04-force-resources.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/04-force-resources.sh b/tests/04-force-resources.sh index 6ab9974e..83727e9f 100644 --- a/tests/04-force-resources.sh +++ b/tests/04-force-resources.sh @@ -19,10 +19,10 @@ scenario_cmd() { # Attempt to decrypt it with limited time. We want this # command to fail, so we negate the normal return code. - setup_check "scrypt dec 1 second" + setup_check "scrypt dec 0.1 seconds" ( echo "${password}" | ${c_valgrind_cmd} "${bindir}/scrypt" \ - dec -P -t 1 "${longwait_encrypted_file}" \ + dec -P -t 0.1 "${longwait_encrypted_file}" \ "${longwait_decrypted_file}" \ 2> "${longwait_failed_log}" expected_exitcode 1 $? > "${c_exitfile}"