fix call with error handler not throwing on call itself

This commit is contained in:
2020-02-25 18:10:23 +01:00
parent bc7593bda5
commit 9901785c80
3 changed files with 3 additions and 5 deletions
+1 -4
View File
@@ -614,10 +614,7 @@ describe("attaching handlers before connecting", ()=>{
})
sock.connect().then(_ => {
sock.call("unknownRPC123", "AAAAA").catch(e => {
console.log("unexpected call catch clause");
done(e)
})
sock.call("unknownRPC123", "AAAAA").catch(e => { /* ignore */})
}).catch(e => {
console.log("unexpected connect catch clause");
done(e)