Skip to content

Commit c341502

Browse files
Fix IPv6 URL issue in htmlStreaming Jest tests
The test was failing in GitHub Actions with "TypeError: Invalid URL" because the server was binding to IPv6 address `::`, which when interpolated into the URL string became `http://:::port` (invalid). Changed from using `address` to using `localhost` which works correctly for both IPv4 and IPv6 environments. Fixes: react_on_rails_pro/packages/node-renderer/tests/htmlStreaming.test.js:76 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9bce7b9 commit c341502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react_on_rails_pro/packages/node-renderer/tests/htmlStreaming.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ const createForm = ({ project = 'spec-dummy', commit = '', props = {}, throwJsEr
7272
const makeRequest = async (options = {}) => {
7373
const startTime = Date.now();
7474
const form = createForm(options);
75-
const { address, port } = app.server.address();
76-
const client = http2.connect(`http://${address}:${port}`);
75+
const { port } = app.server.address();
76+
const client = http2.connect(`http://localhost:${port}`);
7777
const request = client.request({
7878
':method': 'POST',
7979
':path': `/bundles/${SERVER_BUNDLE_TIMESTAMP}/render/454a82526211afdb215352755d36032c`,

0 commit comments

Comments
 (0)