From 0b32e66c8e627ce86d788559f5c689621eda2a61 Mon Sep 17 00:00:00 2001 From: Nicolas Le Cam Date: Mon, 30 Oct 2023 16:41:14 +0100 Subject: [PATCH] server: Force local mode when launching test-data target (#25155) --- server/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/Makefile b/server/Makefile index 81b31cbb32..e4beefac0c 100644 --- a/server/Makefile +++ b/server/Makefile @@ -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