Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

fix failing tests #2567

Merged
merged 1 commit into from
Oct 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/src/api/subscriptions/eth.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class Eth {
setTimeout(() => this._blockNumber(), timeout);
};

if (!this._api.transport.isConnected()) {
if (!this._api.transport.isConnected) {
nextTimeout(500);
return;
}
Expand Down
3 changes: 3 additions & 0 deletions js/src/api/subscriptions/eth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function stubApi (blockNumber) {

return {
_calls,
transport: {
isConnected: true
},
eth: {
blockNumber: () => {
const stub = sinon.stub().resolves(new BigNumber(blockNumber || START_BLOCK))();
Expand Down