From f73d15f82ceed8c9e77899028a56d7187bfb0a5b Mon Sep 17 00:00:00 2001 From: Andrew Jackson <46945903+AndrewJackson2020@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:01:33 -0500 Subject: [PATCH] Fix CI script to allow consecutive runs locally (#793) Co-authored-by: CommanderKeynes --- .circleci/run_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/run_tests.sh b/.circleci/run_tests.sh index b6bc422..41aae91 100644 --- a/.circleci/run_tests.sh +++ b/.circleci/run_tests.sh @@ -26,6 +26,7 @@ PGPASSWORD=sharding_user pgbench -h 127.0.0.1 -U sharding_user shard1 -i PGPASSWORD=sharding_user pgbench -h 127.0.0.1 -U sharding_user shard2 -i # Start Toxiproxy +kill -9 $(pgrep toxiproxy) || true LOG_LEVEL=error toxiproxy-server & sleep 1 @@ -177,3 +178,6 @@ killall pgcat -s SIGINT # Allow for graceful shutdown sleep 1 + +kill -9 $(pgrep toxiproxy) +sleep 1