fix firefox bugs

This commit is contained in:
Manuel Araoz 2014-08-26 15:33:54 -03:00
commit 68014db04a
3 changed files with 3 additions and 2 deletions

View file

@ -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;
};

View file

@ -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

View file

@ -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');