Skip to content

Commit 1ff4999

Browse files
committed
Fix the test
1 parent 5486113 commit 1ff4999

File tree

1 file changed

+1
-3
lines changed
  • tests/pgsql-split-brain-isolated-standby

1 file changed

+1
-3
lines changed

tests/pgsql-split-brain-isolated-standby/run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ echo ">>> Isolating pgslave3..."
1010
docker-compose exec pgslave3 bash -c "echo 1.1.1.1 pgmaster >> /etc/hosts && echo 1.1.1.2 pgslave1 >> /etc/hosts"
1111
sleep 60
1212

13-
SLAVE_EXIT=`docker-compose ps | grep pgslave3 | grep Exit | wc -l | tr -d ' '`
13+
SLAVE_EXIT=`docker-compose logs pgslave3 | tail -n5 | grep 'repmgrd terminating...' | wc -l | tr -d ' '`
1414
if [[ "$SLAVE_EXIT" != "1" ]]; then
15-
docker-compose ps
16-
docker-compose logs pgslave3
1715
echo '>>> Isolated slave should die!';
1816
exit 1
1917
fi

0 commit comments

Comments
 (0)