From d345694b018d2bad26e1366e1529022ca444690c Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Sun, 28 Dec 2025 04:50:41 +1100 Subject: [PATCH] Fix: Add missing generateTestId function causing server crash --- lib/runner.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/runner.js b/lib/runner.js index 2c6f7a2..00876f8 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -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');