From 6e4084fb5bd3309674e79bd3b45a4ede7fdda81e Mon Sep 17 00:00:00 2001 From: Petr Hracek Date: Thu, 4 Apr 2024 11:57:44 +0200 Subject: [PATCH] Add check if new value is really present (#298) in application and increase timeout for sure. Signed-off-by: Petr "Stone" Hracek --- test/run-modfcgid | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/run-modfcgid b/test/run-modfcgid index 930cbd4..ef8471c 100755 --- a/test/run-modfcgid +++ b/test/run-modfcgid @@ -365,11 +365,15 @@ test_8_response() { ct_check_testcase_result $? # If we set PSGI_RELOAD, this change affects application. - sleep 2 + sleep 3 info "Changing source code of application" docker exec $(cat ${cid_file}) /bin/sh -c "sed -ie 's/old initial value/new initial value/' lib/My/Test.pm" ct_check_testcase_result $? - sleep 2 + + info "Check if new value is present" + docker exec $(cat ${cid_file}) /bin/sh -c "grep 'new initial' lib/My/Test.pm" + ct_check_testcase_result $? + sleep 3 test_response '/' 200 'new initial value: 0' ct_check_testcase_result $?