From f4c44a4397d3c68e1b4a482579d7f297429ad645 Mon Sep 17 00:00:00 2001 From: georgetarazevich Date: Tue, 19 Dec 2023 11:13:39 +0300 Subject: [PATCH] Fix typos in test names --- .../config/validator/maxNumberOfDisplayedFailedChecks.bats | 2 +- tests/Options/config/validator/recordPasses.bats | 2 +- tests/tools/test_helper/common-setup.bash | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Options/config/validator/maxNumberOfDisplayedFailedChecks.bats b/tests/Options/config/validator/maxNumberOfDisplayedFailedChecks.bats index d2b40979..d09af516 100644 --- a/tests/Options/config/validator/maxNumberOfDisplayedFailedChecks.bats +++ b/tests/Options/config/validator/maxNumberOfDisplayedFailedChecks.bats @@ -18,7 +18,7 @@ teardown() { echo -e "\nDone ..." >&3 } -@test "--maxNumberOfDisplayedFailedChecks, Outputs all processed file names, maxNumberOfDisplayedFailedChecks=0" { +@test "--maxNumberOfDisplayedFailedChecks, Sets maximum amount of failed checks displayed for each rule, maxNumberOfDisplayedFailedChecks=0" { run curl -F "file=@$PROJECT_ROOT/Resources/a.pdf" localhost:8080/api/validate/1b -H "Accept:text/html" refute_output --partial 'Failed' diff --git a/tests/Options/config/validator/recordPasses.bats b/tests/Options/config/validator/recordPasses.bats index 16cff725..d324cea7 100644 --- a/tests/Options/config/validator/recordPasses.bats +++ b/tests/Options/config/validator/recordPasses.bats @@ -18,7 +18,7 @@ teardown() { echo -e "\nDone ..." >&3 } -@test "--recordPasses, Sets maximum amount of failed checks, recordPasses=true" { +@test "--recordPasses, Logs successful validation checks, recordPasses=true" { run curl -F "file=@$PROJECT_ROOT/Resources/veraPDFPDFAConformanceCheckerGUI.pdf" localhost:8080/api/validate/1b -H "Accept:text/html" assert_output --partial 'Passed' diff --git a/tests/tools/test_helper/common-setup.bash b/tests/tools/test_helper/common-setup.bash index e85996d1..876226d7 100755 --- a/tests/tools/test_helper/common-setup.bash +++ b/tests/tools/test_helper/common-setup.bash @@ -11,6 +11,8 @@ _common_setup() { echo -e "\nDOCKER_CONTAINER_ID: $DOCKER_CONTAINER \n" >&3 echo "Checking docker container logs...at:" >&3 + sleep 1 # sleep sec + export test_logs_starting_time=$(date +%s) echo $(date -d @"$test_logs_starting_time") >&3 }