From 68014db04a2351c2dfd8a1e1d61ae33469ee0059 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 26 Aug 2014 15:33:54 -0300 Subject: [PATCH] fix firefox bugs --- js/models/network/Async.js | 1 + karma.conf.js | 2 +- test/test.network.Async.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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');