Skip to content

Commit a439407

Browse files
committed
Cleanup
1 parent 87f862f commit a439407

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/test1.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ async function test2() {
1616
}
1717

1818
try {
19-
// const allTests = [test1, test2];
20-
const allTests = [test2];
19+
const allTests = [test1]; // [test1, test2];
2120
allTests.forEach(runIntegrationTest);
2221
} catch (error) {
2322
logError(error);

tests/testLibrary.mjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ async function startAgent(character = DEFAULT_CHARACTER) {
5454
});
5555
log(`proc=${JSON.stringify(proc)}`);
5656
const startTime = Date.now();
57-
const url = "http://127.0.0.1:3000/";
5857
while (true) {
5958
try {
60-
const response = await fetch(url, {method: "GET"});
59+
const response = await fetch("http://127.0.0.1:3000/", {method: "GET"});
6160
if (response.ok) break;
6261
} catch (error) {}
6362
if (Date.now() - startTime > 120000) {
64-
throw new Error("Timeout 120s waiting for server to start");
63+
throw new Error("Timeout waiting for server to start");
6564
} else {
6665
log("Waiting for the server to be ready...");
6766
await sleep(1000);

0 commit comments

Comments
 (0)