ops(relay): bridge production traffic to Fly
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
// This live test uses the hosted relay's real TLS endpoint. Self-hosted relay TLS
|
||||
// opt-in is covered at URL-building/integration level so the local E2E does not
|
||||
// need to provision trusted certificates.
|
||||
const RELAY_BASE_URL = "wss://relay.paseo.sh";
|
||||
const RELAY_BASE_URL = process.env.PASEO_LIVE_RELAY_URL ?? "wss://relay.paseo.sh";
|
||||
|
||||
async function withRetry<T>(
|
||||
fn: () => Promise<T>,
|
||||
@@ -119,6 +119,7 @@ describe("Live relay (relay.paseo.sh) E2E", () => {
|
||||
// === Connect ===
|
||||
const daemonControlWs = new WebSocket(serverControlUrl);
|
||||
const clientWs = new WebSocket(clientUrl);
|
||||
const connected = waitForConnected(daemonControlWs, connectionId);
|
||||
let daemonWs: WebSocket | null = null;
|
||||
|
||||
try {
|
||||
@@ -127,7 +128,7 @@ describe("Live relay (relay.paseo.sh) E2E", () => {
|
||||
waitOpen(clientWs, "client"),
|
||||
]);
|
||||
|
||||
await waitForConnected(daemonControlWs, connectionId);
|
||||
await connected;
|
||||
|
||||
daemonWs = new WebSocket(serverDataUrl);
|
||||
await waitOpen(daemonWs, "server-data");
|
||||
|
||||
Reference in New Issue
Block a user