Skip to content

Commit 8322ffd

Browse files
committed
Fix the load test
1 parent cad3d7e commit 8322ffd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

api/cmd/loadtest/main.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func main() {
2525
if err != nil {
2626
log.Fatal("Error loading .env file")
2727
}
28-
fmt.Printf("\n\n%s\n\n", decode("LTa1M0I0nDKNEOIQHFc0uEaRX3AnlZY="))
2928
sendSingle()
3029
}
3130

@@ -60,13 +59,13 @@ func sendSingle() {
6059
var responsePayload string
6160
err := requests.
6261
URL("/v1/messages/send").
63-
Host("leading-puma-internal.ngrok-free.app").
62+
Host("api.httpsms.com").
6463
Header("x-api-key", os.Getenv("HTTPSMS_KEY")).
6564
BodyJSON(&map[string]any{
66-
"content": encrypt("This is a test text message"),
65+
"content": fmt.Sprintf("This is a test text message [%d]", i),
6766
"from": os.Getenv("HTTPSMS_FROM"),
68-
"to": os.Getenv("HTTPSMS_FROM"),
69-
"encrypted": true,
67+
"to": os.Getenv("HTTPSMS_TO"),
68+
"encrypted": false,
7069
"request_id": fmt.Sprintf("load-%s-%d", uuid.NewString(), i),
7170
}).
7271
ToString(&responsePayload).

0 commit comments

Comments
 (0)