From 10660ede7d78d20c7674ab4ea60ca488b6844326 Mon Sep 17 00:00:00 2001 From: Serious-senpai <57554044+Serious-senpai@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:27:21 +0700 Subject: [PATCH] Minor wrk script changes --- scripts/wrk/api/v1/admin/login.lua | 4 +--- scripts/wrk/root.lua | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/wrk/api/v1/admin/login.lua b/scripts/wrk/api/v1/admin/login.lua index 7fffcdd..80f33ff 100644 --- a/scripts/wrk/api/v1/admin/login.lua +++ b/scripts/wrk/api/v1/admin/login.lua @@ -4,7 +4,7 @@ local pre_request function init(args) -- Pre-generate the request - payload = "grant_type=password&username=admin&password=NgaiLongGey" + payload = "grant_type=password&username=incorrect&password=incorrect" pre_request = "POST /api/v1/admin/login HTTP/1.1\r\n" .. "Accept: application/json\r\n" .. "Connection: keep-alive\r\n" .. @@ -16,8 +16,6 @@ function init(args) "\r\n" .. payload - print(string.format("Sending requests:\n%s\n", pre_request)) - response = nil end diff --git a/scripts/wrk/root.lua b/scripts/wrk/root.lua index 729d9e1..2881db8 100644 --- a/scripts/wrk/root.lua +++ b/scripts/wrk/root.lua @@ -12,8 +12,6 @@ function init(args) string.format("User-Agent: %s\r\n", utils.random_user_agent()) .. "\r\n" - print(string.format("Sending requests:\n%s\n", pre_request)) - response = nil end