Skip to content

Commit 27bd5ea

Browse files
committed
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
1 parent 4d69714 commit 27bd5ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/04-force-resources.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ scenario_cmd() {
1919

2020
# Attempt to decrypt it with limited time. We want this
2121
# command to fail, so we negate the normal return code.
22-
setup_check "scrypt dec 1 second"
22+
setup_check "scrypt dec 0.1 seconds"
2323
(
2424
echo "${password}" | ${c_valgrind_cmd} "${bindir}/scrypt" \
25-
dec -P -t 1 "${longwait_encrypted_file}" \
25+
dec -P -t 0.1 "${longwait_encrypted_file}" \
2626
"${longwait_decrypted_file}" \
2727
2> "${longwait_failed_log}"
2828
expected_exitcode 1 $? > "${c_exitfile}"

0 commit comments

Comments
 (0)