File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { DynamicExecutor } from "@nestia/e2e" ;
2+ import { sleep_for } from "tstl" ;
23
34import api from "@ORGANIZATION/PROJECT-api" ;
45
@@ -57,6 +58,7 @@ export namespace TestAutomation {
5758 } ) ;
5859
5960 // TERMINATE
61+ await sleep_for ( 2500 ) ;
6062 await props . close ( backend ) ;
6163 return report ;
6264 } ;
Original file line number Diff line number Diff line change @@ -3,19 +3,15 @@ import { sleep_for } from "tstl";
33
44import { MyConfiguration } from "../src/MyConfiguration" ;
55import { MyGlobal } from "../src/MyGlobal" ;
6- import api from "../src/api" ;
76import { TestAutomation } from "./helpers/TestAutomation" ;
87import { TestAutomationStdio } from "./helpers/TestAutomationStdio" ;
98
109const wait = async ( ) : Promise < void > => {
11- const connection : api . IConnection = {
12- host : `http://localhost:${ MyConfiguration . API_PORT ( ) } ` ,
13- } ;
1410 while ( true )
1511 try {
16- await api . functional . monitors . health . get ( connection ) ;
12+ await fetch ( `http://localhost: ${ MyConfiguration . API_PORT ( ) } /dsafdsafsd` ) ;
1713 return ;
18- } catch {
14+ } catch ( exp ) {
1915 await sleep_for ( 100 ) ;
2016 }
2117} ;
You can’t perform that action at this time.
0 commit comments