Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Always timeout when waiting for services
Thomas Scholtes committed 2 years ago
commit 456a4287fd2c8045012f95baa37a00ae2cebba29
parent 7e613952f59d09ee232c9105ce837a93325d10f5
1 file changed +4 -1
modified tests/support/peerManager.ts
@@ -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,
    });
  }