Skip to content

Commit

Permalink
Add connection not open on send test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Jan 10, 2020
1 parent 9b4b68a commit 3be8b98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/e2e.method.send.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ describe('method.send [ @E2E ]', function () {
}
});

it('errors when there is no connection', async function(){
try {
let _web3 = new Web3('ws://localhost:' + 8777); // Port DNE
await _web3.eth.getBlockNumber();
assert.fail();
} catch (err) {
assert(err.message.includes('connection not open'))
}
})

it('errors on revert', async function () {
try {
await instance
Expand Down

0 comments on commit 3be8b98

Please sign in to comment.