mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix: Add missing generateTestId function causing server crash
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
// lighthouse, chrome-launcher, uuid are ESM only/compatible, imported dynamically
|
// lighthouse, chrome-launcher, uuid are ESM only/compatible, imported dynamically
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const crypto = require('crypto');
|
||||||
|
|
||||||
// Simple Queue Implementation to prevent concurrency crashes
|
// Simple Queue Implementation to prevent concurrency crashes
|
||||||
class TestQueue {
|
class TestQueue {
|
||||||
@@ -265,6 +266,11 @@ async function getHistory(userUuid, userIp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Helper to generate distinct test IDs
|
||||||
|
function generateTestId() {
|
||||||
|
return crypto.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
// Need os for tmpdir
|
// Need os for tmpdir
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user