mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-04-02 06:22:20 +00:00
Update and rename test_apicache_ReDos.js to test-apicache-ReDos.js
This commit is contained in:
parent
e243a1a3a6
commit
78874f2d76
1 changed files with 1 additions and 1 deletions
|
@ -19,4 +19,4 @@ test("Test ReDos - attack string", async (t) => {
|
|||
const elapsedTime = endTime - startTime;
|
||||
const reDosThreshold = 9000;
|
||||
assert(elapsedTime <= reDosThreshold, `🚨 可能存在 ReDoS 攻击!getDuration 方法耗时 ${elapsedTime.toFixed(2)} 毫秒,超过阈值 ${reDosThreshold} 毫秒。`);
|
||||
});
|
||||
});
|
Loading…
Add table
Reference in a new issue