From 3412ec6d8fbe2002aad5155abe75b0b47ad84834 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Thu, 12 Feb 2015 10:46:11 -0300 Subject: [PATCH] Comment integration tests --- test/integration/01-transactionouts.js | 4 ++-- test/integration/02-transactionouts.js | 2 +- test/integration/99-sync.js.descructive-test | 10 +++++----- test/integration/addr.js | 4 ++-- test/integration/addrCache.js | 2 +- test/integration/block.js | 2 +- test/integration/blockExtractor.js | 2 +- test/integration/blocklist.js | 2 +- test/integration/messages.js | 2 +- test/integration/nodecheck.js | 2 +- test/integration/status.js | 2 +- test/integration/txs.js | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/test/integration/01-transactionouts.js b/test/integration/01-transactionouts.js index 732c3c87..19110db5 100644 --- a/test/integration/01-transactionouts.js +++ b/test/integration/01-transactionouts.js @@ -14,7 +14,7 @@ var assert = require('assert'), var txItemsValid = JSON.parse(fs.readFileSync('test/integration/txitems.json')); var txDb; -describe('TransactionDb fromIdWithInfo', function(){ +describe.skip('TransactionDb fromIdWithInfo', function(){ before(function(c) { txDb = TransactionDb; @@ -119,7 +119,7 @@ describe('TransactionDb fromIdWithInfo', function(){ }); }); -describe('TransactionDb Outs', function(){ +describe.skip('TransactionDb Outs', function(){ before(function(c) { txDb = TransactionDb; diff --git a/test/integration/02-transactionouts.js b/test/integration/02-transactionouts.js index 78a363f3..ed137495 100644 --- a/test/integration/02-transactionouts.js +++ b/test/integration/02-transactionouts.js @@ -17,7 +17,7 @@ var spentValid = JSON.parse(fs.readFileSync('test/integration/spent.json')); var txDb; -describe('TransactionDb Expenses', function(){ +describe.skip('TransactionDb Expenses', function(){ before(function(c) { txDb = TransactionDb; diff --git a/test/integration/99-sync.js.descructive-test b/test/integration/99-sync.js.descructive-test index 4a9c6059..cd8bc4ef 100644 --- a/test/integration/99-sync.js.descructive-test +++ b/test/integration/99-sync.js.descructive-test @@ -131,7 +131,7 @@ var checkBlocks = function(hashes,heights){ }; -describe('Sync Reorgs', function(){ +describe.skip('Sync Reorgs', function(){ var opts = { forceRPC: true, stopAt: b[5], @@ -157,7 +157,7 @@ describe('Sync Reorgs', function(){ }; - describe('reorg, case 1', function() { + describe.skip('reorg, case 1', function() { checkTxs([t[0], t[1], t[2], t[3], t[4]],[16,17,18,19,20]); checkBlocks([b[0], b[1], b[2], b[3], b[4]],[16,17,18,19,20]); it('trigger reorg case 1', function(done1){ @@ -250,7 +250,7 @@ describe('Sync Reorgs', function(){ // * \ // * C2c(TX=C2.TX)* - describe('reorg, case 2c', function() { + describe.skip('reorg, case 2c', function() { it('trigger reorg case 2c', function(done1){ s.sync.storeTipBlock(case2c, function(err) { assert(!err, 'shouldnt return error' + err); @@ -291,7 +291,7 @@ describe('Sync Reorgs', function(){ previousblockhash: '666', }; - describe('reorg, case 3)', function() { + describe.skip('reorg, case 3)', function() { it('case 3). Should return an error', function(done1){ s.sync.storeTipBlock(case3, function(err) { assert(err, 'should return error' + err); @@ -322,7 +322,7 @@ describe('Sync Reorgs', function(){ previousblockhash: '111', }; - describe('p2p sync. no reorgs', function() { + describe.skip('p2p sync. no reorgs', function() { it('Should return an error', function(done1){ s.sync.storeTipBlock(p2p, false, function(err) { assert(!err, 'shouldnt return error' + err); diff --git a/test/integration/addr.js b/test/integration/addr.js index 70d80fd5..824c09d3 100644 --- a/test/integration/addr.js +++ b/test/integration/addr.js @@ -14,7 +14,7 @@ var assert = require('assert'), var should = require('chai'); var txDb; -describe('Address balances', function() { +describe.skip('Address balances', function() { this.timeout(5000); before(function(c) { @@ -83,7 +83,7 @@ describe('Address balances', function() { }); //tested against https://api.biteasy.com/testnet/v1/addresses/2N1pLkosf6o8Ciqs573iwwgVpuFS6NbNKx5/unspent-outputs?per_page=40 -describe('Address unspent', function() { +describe.skip('Address unspent', function() { before(function(c) { txDb = TransactionDb; diff --git a/test/integration/addrCache.js b/test/integration/addrCache.js index 815e76e7..6e6b4f68 100644 --- a/test/integration/addrCache.js +++ b/test/integration/addrCache.js @@ -16,7 +16,7 @@ var should = require('chai'); var txDb; -describe('Address cache ', function() { +describe.skip('Address cache ', function() { this.timeout(5000); before(function(c) { diff --git a/test/integration/block.js b/test/integration/block.js index 0d6e5e4e..91192fc6 100644 --- a/test/integration/block.js +++ b/test/integration/block.js @@ -14,7 +14,7 @@ assert = require('assert'), var bDb; -describe('BlockDb fromHashWithInfo', function() { +describe.skip('BlockDb fromHashWithInfo', function() { before(function(c) { bDb = BlockDb; diff --git a/test/integration/blockExtractor.js b/test/integration/blockExtractor.js index 3f5f3609..c08c9384 100644 --- a/test/integration/blockExtractor.js +++ b/test/integration/blockExtractor.js @@ -14,7 +14,7 @@ var assert = require('assert'), var should = require('chai'); //var txItemsValid = JSON.parse(fs.readFileSync('test/model/txitems.json')); -describe('BlockExtractor', function(){ +describe.skip('BlockExtractor', function(){ var be = new BlockExtractor(config.bitcoind.dataDir, config.network); diff --git a/test/integration/blocklist.js b/test/integration/blocklist.js index 19b104af..4e1b3fc5 100644 --- a/test/integration/blocklist.js +++ b/test/integration/blocklist.js @@ -13,7 +13,7 @@ var assert = require('assert'), var bDb; -describe('BlockDb getBlocksByDate', function(){ +describe.skip('BlockDb getBlocksByDate', function(){ before(function(c) { diff --git a/test/integration/messages.js b/test/integration/messages.js index d51ccbaa..5cbd728c 100644 --- a/test/integration/messages.js +++ b/test/integration/messages.js @@ -31,7 +31,7 @@ function createMockReq(body) { }; } -describe('messages.verify', function() { +describe.skip('messages.verify', function() { it('should return true with correct message', function(done) { var mockReq = createMockReq({ diff --git a/test/integration/nodecheck.js b/test/integration/nodecheck.js index 2e2973cd..9da6d85f 100644 --- a/test/integration/nodecheck.js +++ b/test/integration/nodecheck.js @@ -6,7 +6,7 @@ var bDb = BlockDb; var expect = require('chai').expect; -describe('Node check', function() { +describe.skip('Node check', function() { it('should contain block ' + height_needed, function(done) { bDb.blockIndex(height_needed, function(err, b) { expect(err).to.equal(null); diff --git a/test/integration/status.js b/test/integration/status.js index d912fa02..46e8a03a 100644 --- a/test/integration/status.js +++ b/test/integration/status.js @@ -6,7 +6,7 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'development'; var assert = require('assert'), Status = require('../../app/models/Status'); -describe('Status', function(){ +describe.skip('Status', function(){ it('getInfo', function(done) { var d = new Status(); diff --git a/test/integration/txs.js b/test/integration/txs.js index 0fc18f9c..2f4ce234 100644 --- a/test/integration/txs.js +++ b/test/integration/txs.js @@ -16,7 +16,7 @@ var should = require('chai'); var sinon = require('sinon'); var txDb; -describe('Transactions for multiple addresses', function() { +describe.skip('Transactions for multiple addresses', function() { this.timeout(5000); var req, res;