Fix: Add missing generateTestId function causing server crash

This commit is contained in:
2025-12-28 04:50:41 +11:00
parent 98b92c1a20
commit d345694b01

View File

@@ -1,6 +1,7 @@
// lighthouse, chrome-launcher, uuid are ESM only/compatible, imported dynamically
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
// Simple Queue Implementation to prevent concurrency crashes
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
const os = require('os');