From b8ccb01f885023f97adbd3e0bd6e67ee92bd71bb Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:44:39 -0600 Subject: [PATCH] Merge pull request #17163 from overleaf/jel-dev-env-tests-mongo [web] Use mongosh for tests in individual modules GitOrigin-RevId: e2ca316434b39c348efcb0a289652931a6ce95e6 --- services/web/Makefile.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/Makefile.module b/services/web/Makefile.module index 0b5e96ef2a..73e20d44c4 100644 --- a/services/web/Makefile.module +++ b/services/web/Makefile.module @@ -31,11 +31,11 @@ DOCKER_COMPOSE_TEST_UNIT := \ TEST_ACCEPTANCE_MONGO_INIT := \ $(DOCKER_COMPOSE_TEST_ACCEPTANCE) up -d mongo; \ $(DOCKER_COMPOSE_TEST_ACCEPTANCE) exec -T mongo sh -c ' \ - while ! mongo --eval "db.version()" > /dev/null; do \ + while ! mongosh --eval "db.version()" > /dev/null; do \ echo "Waiting for Mongo..."; \ sleep 1; \ done; \ - mongo --eval "rs.initiate({ _id: \"overleaf\", members: [ { _id: 0, host: \"mongo:27017\" } ] })"' + mongosh --eval "rs.initiate({ _id: \"overleaf\", members: [ { _id: 0, host: \"mongo:27017\" } ] })"' ifeq (,$(wildcard test/unit)) test_unit: