handle_tx() tests

This commit is contained in:
Manuel Araoz 2014-01-16 16:47:06 -03:00
parent 0a94f2514b
commit d51df9f087
2 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,6 @@ function spec() {
console.log('[p2p_sync] Handle inv for a ' + CoinConst.MSG.to_str(inv.type));
});
// TODO: should limit the invs to objects we haven't seen yet
console.log('getdata');
info.conn.sendGetData(invs);
};

View File

@ -35,7 +35,7 @@ describe('PeerSync', function() {
});
it('should call sendGetData', function() {
ps.handle_inv(inv_info);
expect(inv_info.conn.sendGetData.calledOnce).to.be.ok;
expect(inv_info.conn.sendGetData.calledTwice).to.be.ok;
});
});