fix firefox bugs
This commit is contained in:
parent
9047f4f30b
commit
68014db04a
3 changed files with 3 additions and 2 deletions
|
|
@ -167,6 +167,7 @@ Network.prototype.iterateNonce = function() {
|
||||||
var noncep2uint = this.networkNonce.slice(4, 8).readUInt32BE(0);
|
var noncep2uint = this.networkNonce.slice(4, 8).readUInt32BE(0);
|
||||||
var noncep2 = this.networkNonce.slice(4, 8);
|
var noncep2 = this.networkNonce.slice(4, 8);
|
||||||
noncep2.writeUInt32BE(noncep2uint + 1, 0);
|
noncep2.writeUInt32BE(noncep2uint + 1, 0);
|
||||||
|
this.networkNonce = Buffer.concat([noncep1, noncep2], 8);
|
||||||
return this.networkNonce;
|
return this.networkNonce;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ module.exports = function(config) {
|
||||||
|
|
||||||
// start these browsers
|
// start these browsers
|
||||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||||
browsers: ['Chrome'],
|
browsers: ['Firefox'],
|
||||||
|
|
||||||
|
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
|
|
|
||||||
|
|
@ -257,7 +257,7 @@ describe('Network / Async', function() {
|
||||||
|
|
||||||
describe('#iterateNonce', 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();
|
var n = createN();
|
||||||
n.iterateNonce();
|
n.iterateNonce();
|
||||||
n.networkNonce.slice(4, 8).toString('hex').should.equal('00000001');
|
n.networkNonce.slice(4, 8).toString('hex').should.equal('00000001');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue