From 417e97eef0338546c23216f4117f48671e50f102 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 24 Jul 2015 15:49:19 +0800 Subject: [PATCH] spec: Don't reuse port in session spec --- spec/api-session-spec.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/api-session-spec.coffee b/spec/api-session-spec.coffee index bd7c9bde5923..34a08ee50f09 100644 --- a/spec/api-session-spec.coffee +++ b/spec/api-session-spec.coffee @@ -20,8 +20,7 @@ describe 'session module', -> res.end('finished') server.close() - port = remote.process.port - server.listen port, '127.0.0.1', -> + server.listen 0, '127.0.0.1', -> {port} = server.address() w.loadUrl "#{url}:#{port}" w.webContents.on 'did-finish-load', ->