From 60913618be9268a4f457f05a09eaea6dc25590cf Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Thu, 27 Jul 2023 20:49:14 +0100 Subject: [PATCH] Adjust lower threshold in case of heavy load during testing. --- tests/Modifiers_-_--size_from_file_size.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Modifiers_-_--size_from_file_size.sh b/tests/Modifiers_-_--size_from_file_size.sh index ecfa36b..f5c9f1e 100644 --- a/tests/Modifiers_-_--size_from_file_size.sh +++ b/tests/Modifiers_-_--size_from_file_size.sh @@ -21,11 +21,11 @@ sizeCheck () { lineCount=$(wc -l < "${workFile1}" | tr -dc '0-9') finalLine=$(sed -n '$p' < "${workFile1}") - # The number of output lines should be >8 and <13, and the final + # The number of output lines should be >5 and <13, and the final # percentage should be $2. # - if ! test "${lineCount}" -gt 8; then - echo "(reference size=$1) fewer than 9 output lines (${lineCount})" + if ! test "${lineCount}" -gt 5; then + echo "(reference size=$1) fewer than 6 output lines (${lineCount})" exit 1 fi if ! test "${lineCount}" -lt 13; then