mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
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:
committed by
Sebastian Martinez
parent
7e613952f5
commit
456a4287fd
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user