diff --git a/js/models/network/Async.js b/js/models/network/Async.js index e63b2ecfc..e774d2eea 100644 --- a/js/models/network/Async.js +++ b/js/models/network/Async.js @@ -167,6 +167,7 @@ Network.prototype.iterateNonce = function() { var noncep2uint = this.networkNonce.slice(4, 8).readUInt32BE(0); var noncep2 = this.networkNonce.slice(4, 8); noncep2.writeUInt32BE(noncep2uint + 1, 0); + this.networkNonce = Buffer.concat([noncep1, noncep2], 8); return this.networkNonce; }; diff --git a/karma.conf.js b/karma.conf.js index a5f5a8a5b..98f7c15dc 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -102,7 +102,7 @@ module.exports = function(config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['Chrome'], + browsers: ['Firefox'], // Continuous Integration mode diff --git a/test/test.network.Async.js b/test/test.network.Async.js index 4d46dabb3..b7691cffb 100644 --- a/test/test.network.Async.js +++ b/test/test.network.Async.js @@ -257,7 +257,7 @@ describe('Network / Async', function() { describe('#iterateNonce', function() { - it('should set a nonce not already set', function() { + it.only('should set a nonce not already set', function() { var n = createN(); n.iterateNonce(); n.networkNonce.slice(4, 8).toString('hex').should.equal('00000001');