diff --git a/spec-main/api-context-bridge-spec.ts b/spec-main/api-context-bridge-spec.ts index c962bb67043..238234dbb22 100644 --- a/spec-main/api-context-bridge-spec.ts +++ b/spec-main/api-context-bridge-spec.ts @@ -22,7 +22,7 @@ describe('contextBridge', () => { res.setHeader('Content-Type', 'text/html'); res.end(''); }); - await new Promise(resolve => server.listen(0, resolve)); + await new Promise(resolve => server.listen(0, '127.0.0.1', resolve)); }); after(async () => {