Skip to content
Snippets Groups Projects
Commit ff800089 authored by Marcin's avatar Marcin Committed by Marcin
Browse files

functional tests: correctly remove database after a test

A databses for tests are created with double quoted name and were dropped
without quoting its names. Unqoted identifires are made lowered case
and quoted preserve letters cases, so when a test database
containded capital letters, then DROP command did not find a database
to drop.
parent b3a44006
No related branches found
No related tags found
6 merge requests!627merge in fix for get_current_block_age,!626Fix get_current_block_age function to avoid healthcheck fails,!622merge develop to master,!599merge ( with merge commit) develop to master,!597Merge develop to master for release,!257query_supervisor configuration and parallel queries support and functionl test refactoring
Pipeline #65208 passed
......@@ -51,8 +51,9 @@ for testfun in ${tests}; do
done
on_exit
psql -p $postgres_port -d postgres -v ON_ERROR_STOP=on -c "DROP DATABASE $DB_NAME";
psql -p $postgres_port -d postgres -v ON_ERROR_STOP=on -c "DROP DATABASE \"$DB_NAME\"";
echo "PASSED";
trap - EXIT;
exit 0;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment