server: Force local mode when launching test-data target (#25155)

Этот коммит содержится в:
Nicolas Le Cam
2023-10-30 16:41:14 +01:00
коммит произвёл GitHub
родитель c7461751f2
Коммит 0b32e66c8e

Просмотреть файл

@@ -515,6 +515,7 @@ cover: ## Runs the golang coverage tool. You must run the unit tests first.
$(GO) tool cover -html=cover.out
$(GO) tool cover -html=ecover.out
test-data: export MM_SERVICESETTINGS_ENABLELOCALMODE := true
test-data: run-server inject-test-data stop-server ## start a local instance and add test data to it.
inject-test-data: # add test data to the local instance.
@@ -522,8 +523,6 @@ inject-test-data: # add test data to the local instance.
make stop-server; \
fi
@echo ServiceSettings.EnableLocalMode must be set to true.
bin/mmctl config set TeamSettings.MaxUsersPerTeam 100 --local
bin/mmctl sampledata -u 60 --local