From 2712d81d50cdffddfac1e46264a96332cb6c1cb4 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 26 Sep 2016 18:13:08 +0200 Subject: [PATCH] Remove unused server utils --- test/support/server_utils.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 test/support/server_utils.js diff --git a/test/support/server_utils.js b/test/support/server_utils.js deleted file mode 100644 index 42f229e8..00000000 --- a/test/support/server_utils.js +++ /dev/null @@ -1,17 +0,0 @@ -var utils = {}; - -utils.startOnNextPort = function(server, issue, start_port) { - - var port = start_port || 5555; - - server.on('error', function(e) { - console.log("Port " + port + " already in use, retrying"); - utils.startOnNextPort(server, issue, port+1); - }); - - server.listen(port, '127.0.0.1', issue); -} - -module.exports = utils; - -