Skip to content

Commit

Permalink
Fix the load test
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Apr 26, 2024
1 parent cad3d7e commit 8322ffd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api/cmd/loadtest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func main() {
if err != nil {
log.Fatal("Error loading .env file")
}
fmt.Printf("\n\n%s\n\n", decode("LTa1M0I0nDKNEOIQHFc0uEaRX3AnlZY="))
sendSingle()
}

Expand Down Expand Up @@ -60,13 +59,13 @@ func sendSingle() {
var responsePayload string
err := requests.
URL("/v1/messages/send").
Host("leading-puma-internal.ngrok-free.app").
Host("api.httpsms.com").
Header("x-api-key", os.Getenv("HTTPSMS_KEY")).
BodyJSON(&map[string]any{
"content": encrypt("This is a test text message"),
"content": fmt.Sprintf("This is a test text message [%d]", i),
"from": os.Getenv("HTTPSMS_FROM"),
"to": os.Getenv("HTTPSMS_FROM"),
"encrypted": true,
"to": os.Getenv("HTTPSMS_TO"),
"encrypted": false,
"request_id": fmt.Sprintf("load-%s-%d", uuid.NewString(), i),
}).
ToString(&responsePayload).
Expand Down

0 comments on commit 8322ffd

Please sign in to comment.