Add test for idempotency of citus_prepare_pg_upgrade

pull/5150/head
Nils Dijk 2021-07-07 15:45:55 +02:00 committed by Nils Dijk
parent 5ba6edaa48
commit 2e0f9cff59
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ def main(config):
common.run_pg_regress(config.old_bindir, config.pg_srcdir,
NODE_PORTS[COORDINATOR_NAME], AFTER_PG_UPGRADE_SCHEDULE)
citus_prepare_pg_upgrade(config.old_bindir)
# prepare should be idempotent, calling it a second time should never fail.
citus_prepare_pg_upgrade(config.old_bindir)
common.stop_databases(config.old_bindir, config.old_datadir)