Update and rename test_apicache_ReDos.js to test-apicache-ReDos.js

This commit is contained in:
DayShift 2025-01-19 21:21:40 +08:00 committed by GitHub
parent e243a1a3a6
commit 78874f2d76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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} 毫秒。`);
});
});