diff --git a/tests/test1.mjs b/tests/test1.mjs index 1ccfa9cb65c..e4ddbf0d204 100644 --- a/tests/test1.mjs +++ b/tests/test1.mjs @@ -16,8 +16,7 @@ async function test2() { } try { - // const allTests = [test1, test2]; - const allTests = [test2]; + const allTests = [test1]; // [test1, test2]; allTests.forEach(runIntegrationTest); } catch (error) { logError(error); diff --git a/tests/testLibrary.mjs b/tests/testLibrary.mjs index 7a83023b283..f0c2e08d243 100644 --- a/tests/testLibrary.mjs +++ b/tests/testLibrary.mjs @@ -54,14 +54,13 @@ async function startAgent(character = DEFAULT_CHARACTER) { }); log(`proc=${JSON.stringify(proc)}`); const startTime = Date.now(); - const url = "http://127.0.0.1:3000/"; while (true) { try { - const response = await fetch(url, {method: "GET"}); + const response = await fetch("http://127.0.0.1:3000/", {method: "GET"}); if (response.ok) break; } catch (error) {} if (Date.now() - startTime > 120000) { - throw new Error("Timeout 120s waiting for server to start"); + throw new Error("Timeout waiting for server to start"); } else { log("Waiting for the server to be ready..."); await sleep(1000);