Skip to content

Commit

Permalink
tests/04-force-resources: lower time for "too fast"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gperciva committed Dec 21, 2024
1 parent 4d69714 commit 27bd5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/04-force-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 27bd5ea

Please sign in to comment.