mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1472 from PR0M3TH3AN/ai/load-test-20260121-11214410427964689271
feat: implement load testing script
This commit is contained in:
1 file changed
+2
-1
@@ -332,7 +332,8 @@ async function run() {
|
||||
report.remediation.push('Check relay logs for validation errors or connection limits.');
|
||||
}
|
||||
|
||||
const reportPath = path.join(ARTIFACTS_DIR, `load-report-${new Date().toISOString().replace(/[:.]/g, '-')}.json`);
|
||||
const dateStr = new Date().toISOString().split('T')[0].replace(/-/g, '');
|
||||
const reportPath = path.join(ARTIFACTS_DIR, `load-report-${dateStr}.json`);
|
||||
fs.writeFileSync(reportPath, JSON.stringify(report, null, 2));
|
||||
console.log(`Report saved to ${reportPath}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user