Skip to content

Commit

Permalink
server: Force local mode when launching test-data target (mattermost#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KuSh authored Oct 30, 2023
1 parent c746175 commit 0b32e66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -515,15 +515,14 @@ 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.
@if ! ./scripts/wait-for-system-start.sh; then \
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

Expand Down

0 comments on commit 0b32e66

Please sign in to comment.