From 0d23eaba09a4878520bf346af4cead90d76829fc Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 25 Sep 2022 18:24:21 +1000 Subject: Refactor to mono-repo + upgrade packages --- bundle/scripts/benchmark/users.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 bundle/scripts/benchmark/users.js (limited to 'bundle/scripts/benchmark/users.js') diff --git a/bundle/scripts/benchmark/users.js b/bundle/scripts/benchmark/users.js deleted file mode 100644 index bce67bf4..00000000 --- a/bundle/scripts/benchmark/users.js +++ /dev/null @@ -1,25 +0,0 @@ -require("dotenv").config(); -const fetch = require("node-fetch"); -const count = Number(process.env.COUNT) || 50; -const endpoint = process.env.API || "http://localhost:3001"; - -async function main() { - for (let i = 0; i < count; i++) { - fetch(`${endpoint}/api/auth/register`, { - method: "POST", - body: JSON.stringify({ - fingerprint: `${i}.wR8vi8lGlFBJerErO9LG5NViJFw`, - username: `test${i}`, - invite: null, - consent: true, - date_of_birth: "2000-01-01", - gift_code_sku_id: null, - captcha_key: null, - }), - headers: { "content-type": "application/json" }, - }); - console.log(i); - } -} - -main(); -- cgit 1.5.1