Comment integration tests
This commit is contained in:
parent
49733ea5a8
commit
3412ec6d8f
@ -14,7 +14,7 @@ var assert = require('assert'),
|
|||||||
var txItemsValid = JSON.parse(fs.readFileSync('test/integration/txitems.json'));
|
var txItemsValid = JSON.parse(fs.readFileSync('test/integration/txitems.json'));
|
||||||
var txDb;
|
var txDb;
|
||||||
|
|
||||||
describe('TransactionDb fromIdWithInfo', function(){
|
describe.skip('TransactionDb fromIdWithInfo', function(){
|
||||||
|
|
||||||
before(function(c) {
|
before(function(c) {
|
||||||
txDb = TransactionDb;
|
txDb = TransactionDb;
|
||||||
@ -119,7 +119,7 @@ describe('TransactionDb fromIdWithInfo', function(){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('TransactionDb Outs', function(){
|
describe.skip('TransactionDb Outs', function(){
|
||||||
|
|
||||||
before(function(c) {
|
before(function(c) {
|
||||||
txDb = TransactionDb;
|
txDb = TransactionDb;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ var spentValid = JSON.parse(fs.readFileSync('test/integration/spent.json'));
|
|||||||
|
|
||||||
var txDb;
|
var txDb;
|
||||||
|
|
||||||
describe('TransactionDb Expenses', function(){
|
describe.skip('TransactionDb Expenses', function(){
|
||||||
|
|
||||||
before(function(c) {
|
before(function(c) {
|
||||||
txDb = TransactionDb;
|
txDb = TransactionDb;
|
||||||
|
|||||||
@ -131,7 +131,7 @@ var checkBlocks = function(hashes,heights){
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
describe('Sync Reorgs', function(){
|
describe.skip('Sync Reorgs', function(){
|
||||||
var opts = {
|
var opts = {
|
||||||
forceRPC: true,
|
forceRPC: true,
|
||||||
stopAt: b[5],
|
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]);
|
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]);
|
checkBlocks([b[0], b[1], b[2], b[3], b[4]],[16,17,18,19,20]);
|
||||||
it('trigger reorg case 1', function(done1){
|
it('trigger reorg case 1', function(done1){
|
||||||
@ -250,7 +250,7 @@ describe('Sync Reorgs', function(){
|
|||||||
// * \
|
// * \
|
||||||
// * C2c(TX=C2.TX)*
|
// * C2c(TX=C2.TX)*
|
||||||
|
|
||||||
describe('reorg, case 2c', function() {
|
describe.skip('reorg, case 2c', function() {
|
||||||
it('trigger reorg case 2c', function(done1){
|
it('trigger reorg case 2c', function(done1){
|
||||||
s.sync.storeTipBlock(case2c, function(err) {
|
s.sync.storeTipBlock(case2c, function(err) {
|
||||||
assert(!err, 'shouldnt return error' + err);
|
assert(!err, 'shouldnt return error' + err);
|
||||||
@ -291,7 +291,7 @@ describe('Sync Reorgs', function(){
|
|||||||
previousblockhash: '666',
|
previousblockhash: '666',
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('reorg, case 3)', function() {
|
describe.skip('reorg, case 3)', function() {
|
||||||
it('case 3). Should return an error', function(done1){
|
it('case 3). Should return an error', function(done1){
|
||||||
s.sync.storeTipBlock(case3, function(err) {
|
s.sync.storeTipBlock(case3, function(err) {
|
||||||
assert(err, 'should return error' + err);
|
assert(err, 'should return error' + err);
|
||||||
@ -322,7 +322,7 @@ describe('Sync Reorgs', function(){
|
|||||||
previousblockhash: '111',
|
previousblockhash: '111',
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('p2p sync. no reorgs', function() {
|
describe.skip('p2p sync. no reorgs', function() {
|
||||||
it('Should return an error', function(done1){
|
it('Should return an error', function(done1){
|
||||||
s.sync.storeTipBlock(p2p, false, function(err) {
|
s.sync.storeTipBlock(p2p, false, function(err) {
|
||||||
assert(!err, 'shouldnt return error' + err);
|
assert(!err, 'shouldnt return error' + err);
|
||||||
|
|||||||
@ -14,7 +14,7 @@ var assert = require('assert'),
|
|||||||
var should = require('chai');
|
var should = require('chai');
|
||||||
|
|
||||||
var txDb;
|
var txDb;
|
||||||
describe('Address balances', function() {
|
describe.skip('Address balances', function() {
|
||||||
this.timeout(5000);
|
this.timeout(5000);
|
||||||
|
|
||||||
before(function(c) {
|
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
|
//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) {
|
before(function(c) {
|
||||||
txDb = TransactionDb;
|
txDb = TransactionDb;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ var should = require('chai');
|
|||||||
var txDb;
|
var txDb;
|
||||||
|
|
||||||
|
|
||||||
describe('Address cache ', function() {
|
describe.skip('Address cache ', function() {
|
||||||
this.timeout(5000);
|
this.timeout(5000);
|
||||||
|
|
||||||
before(function(c) {
|
before(function(c) {
|
||||||
|
|||||||
@ -14,7 +14,7 @@ assert = require('assert'),
|
|||||||
|
|
||||||
var bDb;
|
var bDb;
|
||||||
|
|
||||||
describe('BlockDb fromHashWithInfo', function() {
|
describe.skip('BlockDb fromHashWithInfo', function() {
|
||||||
|
|
||||||
before(function(c) {
|
before(function(c) {
|
||||||
bDb = BlockDb;
|
bDb = BlockDb;
|
||||||
|
|||||||
@ -14,7 +14,7 @@ var assert = require('assert'),
|
|||||||
var should = require('chai');
|
var should = require('chai');
|
||||||
//var txItemsValid = JSON.parse(fs.readFileSync('test/model/txitems.json'));
|
//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);
|
var be = new BlockExtractor(config.bitcoind.dataDir, config.network);
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ var assert = require('assert'),
|
|||||||
|
|
||||||
var bDb;
|
var bDb;
|
||||||
|
|
||||||
describe('BlockDb getBlocksByDate', function(){
|
describe.skip('BlockDb getBlocksByDate', function(){
|
||||||
|
|
||||||
|
|
||||||
before(function(c) {
|
before(function(c) {
|
||||||
|
|||||||
@ -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) {
|
it('should return true with correct message', function(done) {
|
||||||
var mockReq = createMockReq({
|
var mockReq = createMockReq({
|
||||||
|
|||||||
@ -6,7 +6,7 @@ var bDb = BlockDb;
|
|||||||
|
|
||||||
var expect = require('chai').expect;
|
var expect = require('chai').expect;
|
||||||
|
|
||||||
describe('Node check', function() {
|
describe.skip('Node check', function() {
|
||||||
it('should contain block ' + height_needed, function(done) {
|
it('should contain block ' + height_needed, function(done) {
|
||||||
bDb.blockIndex(height_needed, function(err, b) {
|
bDb.blockIndex(height_needed, function(err, b) {
|
||||||
expect(err).to.equal(null);
|
expect(err).to.equal(null);
|
||||||
|
|||||||
@ -6,7 +6,7 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|||||||
var assert = require('assert'),
|
var assert = require('assert'),
|
||||||
Status = require('../../app/models/Status');
|
Status = require('../../app/models/Status');
|
||||||
|
|
||||||
describe('Status', function(){
|
describe.skip('Status', function(){
|
||||||
|
|
||||||
it('getInfo', function(done) {
|
it('getInfo', function(done) {
|
||||||
var d = new Status();
|
var d = new Status();
|
||||||
|
|||||||
@ -16,7 +16,7 @@ var should = require('chai');
|
|||||||
var sinon = require('sinon');
|
var sinon = require('sinon');
|
||||||
|
|
||||||
var txDb;
|
var txDb;
|
||||||
describe('Transactions for multiple addresses', function() {
|
describe.skip('Transactions for multiple addresses', function() {
|
||||||
this.timeout(5000);
|
this.timeout(5000);
|
||||||
|
|
||||||
var req, res;
|
var req, res;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user