From 1d133fd682e27c44c337cf2ce527b8fb6c8f42cd Mon Sep 17 00:00:00 2001 From: grypez <143971198+grypez@users.noreply.github.com> Date: Fri, 24 Apr 2026 12:38:23 -0400 Subject: [PATCH] fix(evm-wallet-experiment): use URL.hostname in integration test allowedHosts URL.host includes the port ('127.0.0.1:PORT') but makeHostCaveat checks URL.hostname which strips the port. Same regression as the docker e2e fix. Co-Authored-By: Claude Sonnet 4.6 --- .../test/integration/openclaw-plugin.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/evm-wallet-experiment/test/integration/openclaw-plugin.integration.test.ts b/packages/evm-wallet-experiment/test/integration/openclaw-plugin.integration.test.ts index 1b22de4b8..da61fc7cf 100644 --- a/packages/evm-wallet-experiment/test/integration/openclaw-plugin.integration.test.ts +++ b/packages/evm-wallet-experiment/test/integration/openclaw-plugin.integration.test.ts @@ -233,7 +233,7 @@ exec "${process.execPath}" "${ocapCliEntrypoint}" "$@" throw new Error('Failed to start test RPC server'); } rpcUrl = `http://127.0.0.1:${String(address.port)}`; - const allowedRpcHost = new URL(rpcUrl).host; + const allowedRpcHost = new URL(rpcUrl).hostname; await runOcap(['daemon', 'start']); const launchResponse = (await runOcapJson([