Unverified Commit 809cce89 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Use random port for cargo test (#70926)

We can't guarantee this port will always be available so use random one
instead

x-ref:
https://github.com/vercel/next.js/actions/runs/11221640914/job/31192432034
parent 37ea26bd
const http = require("http"); const http = require("http");
const io = require("socket.io"); const io = require("socket.io");
const opts = { port: 3000 }; const opts = { port: 0 };
const server = http.createServer((req, res) => {}); const server = http.createServer((req, res) => {});
server.listen(opts.port); server.listen(opts.port);
server.close(() => { server.close(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment