From 495368147188af0cde9b9d8073cb53df791d1357 Mon Sep 17 00:00:00 2001 From: georgetarazevich Date: Thu, 14 Dec 2023 19:45:54 +0300 Subject: [PATCH] Update debug.bats --- tests/Options/config/validator/debug.bats | 10 ++++++---- tests/Resources/a_for_debug.pdf | Bin 0 -> 3175 bytes 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 tests/Resources/a_for_debug.pdf diff --git a/tests/Options/config/validator/debug.bats b/tests/Options/config/validator/debug.bats index 3364fbc6..86404d72 100644 --- a/tests/Options/config/validator/debug.bats +++ b/tests/Options/config/validator/debug.bats @@ -1,4 +1,5 @@ #!/usr/bin/env bats +BATS_TEST_TIMEOUT=120 # sec setup() { PROJECT_ROOT="$(cd "$(dirname "$BATS_TEST_FILENAME")/../../.." >/dev/null 2>&1 && pwd)" @@ -20,12 +21,13 @@ teardown() { @test "--debug, Outputs all processed file names, debug=true" { - run curl -F "file=@$PROJECT_ROOT/Resources/a.pdf" localhost:8080/api/validate/3a -H "Accept:text/html" + run curl -F "file=@$PROJECT_ROOT/Resources/a_for_debug.pdf" localhost:8080/api/validate/3a -H "Accept:text/html" [ "$status" -eq 0 ] - sleep 10 # sleep 10 sec + sleep 5 # sleep sec run docker logs $DOCKER_CONTAINER -t --since=$test_logs_starting_time - sleep 10 # sleep 10 sec - assert_output --partial "INFO: a.pdf" + sleep 30 # sleep sec + echo "$output" >&3 + assert_output --partial "INFO: a_for_debug.pdf" } diff --git a/tests/Resources/a_for_debug.pdf b/tests/Resources/a_for_debug.pdf new file mode 100755 index 0000000000000000000000000000000000000000..8ef3db2fce35467c483673f8436fd2399d1278ba GIT binary patch literal 3175 zcmai0TWs4@7;ZO&z%cHYB0xF|jCO44@g+&)kala+1v=U-q+x8@g`V1{tvAPZ?UObg z7fsp(Lx5C-5J-R~jf+4+pgr$_QFwrfjf=zs;(;M}+yhSt5EA^y$4=d}V(CNe|D6B( z@89oDmEm$)?UkiXfBg2(&ys><OC%!A2ZL9TuSd8kZiF zaD`0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