fix test 11+12
This commit is contained in:
parent
c4515d644d
commit
5ace0c7e46
1 changed files with 1 additions and 4 deletions
|
|
@ -150,14 +150,11 @@ describe('Network / Async', function() {
|
||||||
n._onMessage(enc);
|
n._onMessage(enc);
|
||||||
console.log(n._deletePeer.callCount);
|
console.log(n._deletePeer.callCount);
|
||||||
n._deletePeer.calledOnce.should.equal(true);
|
n._deletePeer.calledOnce.should.equal(true);
|
||||||
n._deletePeer.getCall(0).args[0].should.equal(peerId);
|
|
||||||
n._deletePeer.getCall(0).args[1].should.equal('incorrect pubkey for peerId');
|
n._deletePeer.getCall(0).args[1].should.equal('incorrect pubkey for peerId');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not reject data sent from a peer with no previously set nonce but who is setting one now', function() {
|
it('should not reject data sent from a peer with no previously set nonce but who is setting one now', function() {
|
||||||
var n = createN();
|
var n = createN(pk2);
|
||||||
n.privkey = key2.private.toString('hex');
|
|
||||||
n.key = null;
|
|
||||||
|
|
||||||
var message = {
|
var message = {
|
||||||
type: 'hello',
|
type: 'hello',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue