summary refs log tree commit diff
path: root/scripts/stresstest/index.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:18:59 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:18:59 +1000
commit0cd9a46eea260c299db2e2983f7214ab8b119d29 (patch)
tree5fbb98e7adcfeab81594732089474afdde5893f9 /scripts/stresstest/index.js
parentMerge branch 'master' into feat/captchaVerify (diff)
parentMerge remote-tracking branch 'Puyodead1/patch/prettier-config' into staging (diff)
downloadserver-0cd9a46eea260c299db2e2983f7214ab8b119d29.tar.xz
Merge remote-tracking branch 'upstream/staging' into feat/captchaVerify
Diffstat (limited to '')
-rw-r--r--scripts/stresstest/index.js (renamed from api/scripts/stresstest/index.js)10
1 files changed, 5 insertions, 5 deletions
diff --git a/api/scripts/stresstest/index.js b/scripts/stresstest/index.js

index a9a65097..740a9011 100644 --- a/api/scripts/stresstest/index.js +++ b/scripts/stresstest/index.js
@@ -19,19 +19,19 @@ setInterval(() => { getUsers(); }, 60 * 1000); async function generate() { - var accounts = await JSON.parse(fs.readFileSync("accounts.json")); + let accounts = await JSON.parse(fs.readFileSync("accounts.json")); console.log(accounts); - var account = await register(); + let account = await register(); accounts.push(account); fs.writeFileSync("accounts.json", JSON.stringify(accounts)); console.log(accounts.length); - var y = await login(account); + let y = await login(account); sendMessage(y); } async function getUsers() { - var accounts = await JSON.parse(fs.readFileSync("accounts.json")); + let accounts = await JSON.parse(fs.readFileSync("accounts.json")); accounts.forEach(async (x) => { - var y = await login(x); + let y = await login(x); console.log(y); sendMessage(y); });