From a04543280081ad37e764a69deef9bb27bc531f34 Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Mon, 9 Feb 2015 15:13:57 -0300 Subject: [PATCH] Add an skipped test on Wallet --- test/Wallet.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/Wallet.js b/test/Wallet.js index 3de9e0be2..c00a0d8f1 100644 --- a/test/Wallet.js +++ b/test/Wallet.js @@ -2081,12 +2081,12 @@ describe('Wallet model', function() { o.type.should.equal('publicKeyRing'); }); - // For some unknown reason this test times out on - // the Travis server, so we skip it for now. - it.skip('should lock incomming connections', function() { + + it('should lock incomming connections', function() { var obj = JSON.parse(pkr); - sinon.stub(w.network, 'send').returns(); - sinon.stub(w.network, 'lockIncommingConnections').returns(); + sinon.stub(w, 'subscribeToAddresses').returns(); + sinon.stub(w, '_lockIncomming').returns(); + sinon.stub(w, 'emitAndKeepAlive').returns(); obj.requiredCopayers = 3; obj.totalCopayers = 5; @@ -2096,8 +2096,10 @@ describe('Wallet model', function() { w._onPublicKeyRing('sender', { publicKeyRing: obj, }); - w.network.send.calledOnce.should.equal(false); // wasComplete - w.network.lockIncommingConnections.calledOnce.should.equal(true); + w.subscribeToAddresses.calledOnce.should.equal(true); + w._lockIncomming.calledOnce.should.equal(true); + w.emitAndKeepAlive.calledOnce.should.equal(true); + }); });