Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Move load tests into folder
Browse files Browse the repository at this point in the history
  • Loading branch information
EliiseS committed Mar 4, 2020
1 parent 6749754 commit 22cec3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,4 @@ deploy-cluster-for-load-testing: create-kindcluster install-prometheus create-db
run-load-testing: deploy-cluster-for-load-testing deploy-locust port-forward
@echo "$(shell tput setaf 10)$(shell tput bold)Verify load tests $(shell tput sgr0)"

go run verify_load_tests.go
go run verify_load_tests/main.go
4 changes: 1 addition & 3 deletions verify_load_tests.go → verify_load_tests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
)

func main() {
os.Exit(99)

client, _ := prometheus.NewClient("http://localhost:9091")
userCount := getQueryResult(client, "locust_user_count")

Expand Down Expand Up @@ -54,7 +52,7 @@ func getQueryResult(client *prometheus.Client, query string) float64 {
return 0
}

metric, err := resp.Data.Result[0].Values[0].Value()
metric, _ := resp.Data.Result[0].Values[0].Value()

return metric
}
Expand Down

0 comments on commit 22cec3c

Please sign in to comment.