Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Revert rename to transactionPool.js & clean jobsQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-G committed Oct 5, 2017
1 parent a7175f2 commit ef17865
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require('./logic/peer');
require('./logic/peers');
require('./logic/multisignature');
require('./logic/transaction');
require('./logic/transactions/pool');
require('./logic/transactionPool');
require('./logic/transfer');
require('./logic/vote');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var sinon = require('sinon');

var node = require('../../../node');

var jobsQueue = require('../../../../helpers/jobsQueue');
var TransactionPool = require('../../../../logic/transactionPool');
var TransactionLogic = require('../../../../logic/transaction');
var TransferLogic = require('../../../../logic/transfer');
Expand All @@ -17,6 +18,7 @@ describe('txPool', function () {
var txPool;

before(function (done) {
jobsQueue.jobs = {};
// Init transaction logic
modulesLoader.initLogic(TransactionLogic, modulesLoader.scope, function (err, __trsLogic) {
expect(err).to.not.exist;
Expand Down Expand Up @@ -48,6 +50,10 @@ describe('txPool', function () {
});
});

after(function () {
jobsQueue.jobs = {};
});

describe('receiveTransactions', function () {

it('should return empty array when using empty array', function (done) {
Expand Down

0 comments on commit ef17865

Please sign in to comment.