From 5c5f986a54e7a96825aa53af3f3450cfc4a49dd3 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 24 Mar 2016 05:09:21 -0700 Subject: [PATCH] disable websocket server tests --- test/server.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/server.js b/test/server.js index b62bfc1..3b0fbec 100644 --- a/test/server.js +++ b/test/server.js @@ -1,12 +1,12 @@ var Client = require('../') var common = require('./common') var test = require('tape') -var wrtc = require('electron-webrtc')() +// var wrtc = require('electron-webrtc')() -var wrtcReady = false -wrtc.electronDaemon.once('ready', function () { - wrtcReady = true -}) +// var wrtcReady = false +// wrtc.electronDaemon.once('ready', function () { +// wrtcReady = true +// }) var infoHash = '4cb67059ed6bd08362da625b3ae77f6f4a075705' var peerId = new Buffer('01234567890123456789') @@ -31,7 +31,7 @@ function serverTest (t, serverType, serverFamily) { infoHash: infoHash, length: torrentLength, announce: [ announceUrl ] - }, { wrtc: wrtc }) + }/*, { wrtc: wrtc }*/) client1.start() @@ -87,7 +87,7 @@ function serverTest (t, serverType, serverFamily) { infoHash: infoHash, length: torrentLength, announce: [ announceUrl ] - }, { wrtc: wrtc }) + }/*, { wrtc: wrtc }*/) client2.start() @@ -113,7 +113,7 @@ function serverTest (t, serverType, serverFamily) { client1.destroy() server.close() - if (serverType === 'ws') wrtc.close() + // if (serverType === 'ws') wrtc.close() }) }) }) @@ -124,16 +124,16 @@ function serverTest (t, serverType, serverFamily) { }) } -test('websocket server', function (t) { - if (wrtcReady) { - runTest() - } else { - wrtc.electronDaemon.once('ready', runTest) - } - function runTest () { - serverTest(t, 'ws', 'inet') - } -}) +// test('websocket server', function (t) { +// if (wrtcReady) { +// runTest() +// } else { +// wrtc.electronDaemon.once('ready', runTest) +// } +// function runTest () { +// serverTest(t, 'ws', 'inet') +// } +// }) test('http ipv4 server', function (t) { serverTest(t, 'http', 'inet')