File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ async function test2() {
16
16
}
17
17
18
18
try {
19
- // const allTests = [test1, test2];
20
- const allTests = [ test2 ] ;
19
+ const allTests = [ test1 ] ; // [test1, test2];
21
20
allTests . forEach ( runIntegrationTest ) ;
22
21
} catch ( error ) {
23
22
logError ( error ) ;
Original file line number Diff line number Diff line change @@ -54,14 +54,13 @@ async function startAgent(character = DEFAULT_CHARACTER) {
54
54
} ) ;
55
55
log ( `proc=${ JSON . stringify ( proc ) } ` ) ;
56
56
const startTime = Date . now ( ) ;
57
- const url = "http://127.0.0.1:3000/" ;
58
57
while ( true ) {
59
58
try {
60
- const response = await fetch ( url , { method : "GET" } ) ;
59
+ const response = await fetch ( "http://127.0.0.1:3000/" , { method : "GET" } ) ;
61
60
if ( response . ok ) break ;
62
61
} catch ( error ) { }
63
62
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" ) ;
65
64
} else {
66
65
log ( "Waiting for the server to be ready..." ) ;
67
66
await sleep ( 1000 ) ;
You can’t perform that action at this time.
0 commit comments