Skip to content

Commit

Permalink
Run tests on port 3001
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmholmes committed Nov 14, 2023
1 parent 3ad1fdb commit aa5685a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ build-test-image:

run-test-image: build-test-image
docker rm -f grizzly-grafana
docker run --net $$DRONE_DOCKER_NETWORK_ID --name grizzly-grafana -p 3000:3000 --rm grizzly-grafana-test:latest
docker run --net $$DRONE_DOCKER_NETWORK_ID --name grizzly-grafana -p 3001:3000 --rm grizzly-grafana-test:latest

run-test-image-locally: build-test-image test-clean
docker rm -f grizzly-grafana
docker run -d --name grizzly-grafana -p 3000:3000 --rm grizzly-grafana-test:latest
docker run -d --name grizzly-grafana -p 3001:3000 --rm grizzly-grafana-test:latest

test-clean:
go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func GetUrl() string {
if os.Getenv("CI") != "" {
return "http://grizzly-grafana:3000/"
} else {
return "http://localhost:3000/"
return "http://localhost:3001/"
}
}

Expand Down

0 comments on commit aa5685a

Please sign in to comment.