Always kill web servers used in tests

Previously these processes would stay around if the test script crashed
or was otherwise aborted before reaching the kill command.
pull/230/head
Anders Åstrand 4 months ago committed by AndersAstrand
parent 3e0639c390
commit 77d48074a0
  1. 3
      contrib/pg_tde/t/003_remote_config.pl
  2. 3
      contrib/pg_tde/t/006_remote_vault_config.pl

@ -49,6 +49,7 @@ use pgtde;
}
my $pid = MyWebServer->new(8888)->background();
END { kill('TERM', $pid); }
PGTDE::setup_files_dir(basename($0));
@ -85,8 +86,6 @@ PGTDE::psql($node, 'postgres', 'DROP EXTENSION pg_tde;');
$node->stop;
kill('TERM', $pid);
# Compare the expected and out file
my $compare = PGTDE->compare_results();

@ -58,6 +58,7 @@ use pgtde;
}
my $pid = MyWebServer->new(8889)->background();
END { kill('TERM', $pid); }
PGTDE::setup_files_dir(basename($0));
@ -94,8 +95,6 @@ PGTDE::psql($node, 'postgres', 'DROP EXTENSION pg_tde;');
$node->stop;
kill('TERM', $pid);
# Compare the expected and out file
my $compare = PGTDE->compare_results();

Loading…
Cancel
Save