Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
paunin committed Oct 26, 2019
1 parent 5486113 commit 1ff4999
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/pgsql-split-brain-isolated-standby/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ echo ">>> Isolating pgslave3..."
docker-compose exec pgslave3 bash -c "echo 1.1.1.1 pgmaster >> /etc/hosts && echo 1.1.1.2 pgslave1 >> /etc/hosts"
sleep 60

SLAVE_EXIT=`docker-compose ps | grep pgslave3 | grep Exit | wc -l | tr -d ' '`
SLAVE_EXIT=`docker-compose logs pgslave3 | tail -n5 | grep 'repmgrd terminating...' | wc -l | tr -d ' '`
if [[ "$SLAVE_EXIT" != "1" ]]; then
docker-compose ps
docker-compose logs pgslave3
echo '>>> Isolated slave should die!';
exit 1
fi
Expand Down

0 comments on commit 1ff4999

Please sign in to comment.