Skip to content

Commit 36acb8f

Browse files
committed
Simplify webpack.ts
1 parent 3d7c9e2 commit 36acb8f

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

test/helpers/TestAutomation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DynamicExecutor } from "@nestia/e2e";
2+
import { sleep_for } from "tstl";
23

34
import 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
};

test/webpack.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ import { sleep_for } from "tstl";
33

44
import { MyConfiguration } from "../src/MyConfiguration";
55
import { MyGlobal } from "../src/MyGlobal";
6-
import api from "../src/api";
76
import { TestAutomation } from "./helpers/TestAutomation";
87
import { TestAutomationStdio } from "./helpers/TestAutomationStdio";
98

109
const 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
};

0 commit comments

Comments
 (0)