Просмотр исходного кода

Merge pull request #17163 from overleaf/jel-dev-env-tests-mongo

[web] Use mongosh for tests in individual modules

GitOrigin-RevId: e2ca316434b39c348efcb0a289652931a6ce95e6
Jessica Lawshe 2 лет назад
Родитель
Сommit
b8ccb01f88
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/web/Makefile.module

+ 2 - 2
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: