From 5f4b1d7e62b5082b632b66d89a03fe097c59eead Mon Sep 17 00:00:00 2001 From: EpicMo <1982742309@qq.com> Date: Sat, 2 Sep 2023 09:05:26 +0800 Subject: [PATCH] fix: k6 test --- test/k6/favorite_random.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/k6/favorite_random.js b/test/k6/favorite_random.js index d751b08..817d22b 100644 --- a/test/k6/favorite_random.js +++ b/test/k6/favorite_random.js @@ -1,4 +1,4 @@ -import { sleep, check } from 'k6'; +import { sleep } from 'k6'; import http from 'k6/http'; export const options = { @@ -19,7 +19,7 @@ export const options = { export function favorite() { let actionType = Math.random() < 0.5 ? 1 : 2; - let res = http.post(`http://127.0.0.1:37000/douyin/favorite/action/?token=e75fae76-6a4e-4fa8-9b60-230e5d4f6b29&video_id=3048003698&action_type=${actionType}`) + http.post(`http://127.0.0.1:37000/douyin/favorite/action/?token=e75fae76-6a4e-4fa8-9b60-230e5d4f6b29&video_id=3048003698&action_type=${actionType}`) sleep(3) }