Skip to content

Commit

Permalink
Fix test conf_max_file_size
Browse files Browse the repository at this point in the history
  • Loading branch information
thevindu-w committed Nov 23, 2024
1 parent 82bcae1 commit 86fbf1f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/scripts/conf_max_file_size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,7 @@ update_config max_file_size 20

responseDump=$(echo -n "${proto}${method}${fileCount}${chunks}" | hex2bin | client_tool)

protoAck="$PROTO_SUPPORTED"
methodAck="$METHOD_OK"

expected="${protoAck}${methodAck}"

if [ "$responseDump" != "$expected" ]; then
showStatus info 'Incorrect response.'
echo 'Expected:' "$expected"
echo 'Received:' "$responseDump"
exit 1
fi

findOutput=$(find copies -type f -size -21c 2>&1 || echo failed)
findOutput=$(find copies -type f -size +20c 2>&1 || echo failed)
if [ ! -z "$findOutput" ]; then
showStatus info 'Large file is also saved.'
exit 1
Expand Down

0 comments on commit 86fbf1f

Please sign in to comment.