Skip to content

Commit b827754

Browse files
committed
wait 20 seconds
1 parent 5f37c5f commit b827754

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

start-mongodb.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ wait_for_mongodb () {
5757
sleep 1
5858
TIMER=$((TIMER + 1))
5959

60-
if [[ $TIMER -eq 40 ]]; then
61-
echo "MongoDB did not initialize within 40 seconds. Exiting."
60+
if [[ $TIMER -eq 20 ]]; then
61+
echo "MongoDB did not initialize within 20 seconds. Exiting."
6262
exit 2
6363
fi
6464
done
6565
echo "::endgroup::"
6666
}
6767

68+
6869
# check if the container already exists and remove it
6970
## TODO: put this behind an option flag
7071
# if [ "$(docker ps -q -f name=$MONGODB_CONTAINER_NAME)" ]; then

0 commit comments

Comments
 (0)