Skip to content

Commit

Permalink
mongodb example: don't start devenv manually
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Mar 22, 2024
1 parent 5d547d4 commit 84ce563
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions examples/mongodb/.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ set -x
mongosh --version
mongod --version

# Start service in the background and store the PID
echo "Starting mongo service..."
devenv up&
DEVENV_PID=$!

check_mongo_status() {
echo "Waiting for service to become available..."
MONGO_OUTPUT=$(mongosh --quiet --eval "{ ping: 1 }" 2>&1)
Expand Down Expand Up @@ -52,10 +47,6 @@ for i in $(seq 1 10); do
fi
done

echo 'Killing service...'
pkill -P $DEVENV_PID
wait $DEVENV_PID 2>&1 >/dev/null

# Exit the script
exit $MONGO_EXIT_STATUS

0 comments on commit 84ce563

Please sign in to comment.