Skip to content

Commit

Permalink
Add check if new value is really present (#298)
Browse files Browse the repository at this point in the history
in application and increase timeout for sure.

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek authored Apr 4, 2024
1 parent 006a523 commit 6e4084f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/run-modfcgid
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit 6e4084f

Please sign in to comment.