Always timeout when waiting for services

We want the tests to fail when one of the services fails to start or
stop.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
This commit is contained in:
Thomas Scholtes
2023-11-25 06:40:30 +01:00
committed by Sebastian Martinez
parent 7e613952f5
commit 456a4287fd
+4 -1
View File
@@ -251,7 +251,7 @@ export class RadiclePeer {
resources: [
`tcp:${this.#httpdBaseUrl.hostname}:${this.#httpdBaseUrl.port}`,
],
timeout: 7000,
timeout: 2000,
});
}
@@ -266,6 +266,7 @@ export class RadiclePeer {
`tcp:${this.#httpdBaseUrl.hostname}:${this.#httpdBaseUrl.port}`,
],
reverse: true,
timeout: 2000,
});
this.#httpdBaseUrl = undefined;
@@ -295,6 +296,7 @@ export class RadiclePeer {
await waitOn({
resources: [`socket:${this.#socket}`],
timeout: 2000,
});
const { stdout } = this.rad(["node", "events"], {
@@ -335,6 +337,7 @@ export class RadiclePeer {
await waitOn({
resources: [`socket:${this.#socket}`],
reverse: true,
timeout: 2000,
});
}