summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/web/e2e.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/e2e.mjs b/test/web/e2e.mjs
index 2ff83ae..ad10295 100644
--- a/test/web/e2e.mjs
+++ b/test/web/e2e.mjs
@@ -41,7 +41,7 @@ async function launchBridge(upstream, origin, extra = []) {
const child = start(bridgeBinary, ['--listen', '127.0.0.1:0', '--upstream', upstream, ...(origin ? ['--origin', origin] : []), ...extra]);
// With a public origin the log does not include the bound address. Tests
// requiring a proxy instead reserve a port and pass it explicitly below.
- const match = await wait(() => child.errors.match(/cloud9-http (http:\/\/127\.0\.0\.1:\d+)/), 'bridge ready');
+ const match = await wait(() => child.errors.match(/9web (http:\/\/127\.0\.0\.1:\d+)/), 'bridge ready');
return { child, url: match[1] };
}
async function port() { const s = net.createServer(); s.listen(0, '127.0.0.1'); await once(s, 'listening'); const p = s.address().port; await new Promise(r => s.close(r)); return p; }
@@ -213,7 +213,7 @@ try {
const httpsPort = await port(), backendPort = await port();
const origin = `https://localhost:${httpsPort}`;
const secureBridge = start(bridgeBinary, ['--listen', `127.0.0.1:${backendPort}`, '--upstream', `tcp:${upstream}`, '--origin', origin]);
- await wait(() => secureBridge.errors.includes('cloud9-http'), 'TLS backend ready');
+ await wait(() => secureBridge.errors.includes('9web'), 'TLS backend ready');
tlsServer = tls.createServer({ key: await fs.readFile(key), cert: await fs.readFile(cert), ALPNProtocols: ['http/1.1'] }, socket => {
const upstreamSocket = net.connect(backendPort, '127.0.0.1');
sockets.add(socket); sockets.add(upstreamSocket);