|
@@ -870,25 +870,6 @@ describe("attaching handlers before connecting", () => {
|
870
|
870
|
})
|
871
|
871
|
})
|
872
|
872
|
|
873
|
|
- it("fires error if call is unknown", (done) => {
|
874
|
|
- const serv = new RPCServer().listen(21004)
|
875
|
|
- const sock = new RPCSocket(21004, 'localhost')
|
876
|
|
-
|
877
|
|
- sock.on('error', (err) => {
|
878
|
|
- sock.close()
|
879
|
|
- serv.close()
|
880
|
|
- done()
|
881
|
|
- })
|
882
|
|
-
|
883
|
|
- sock.connect().then(_ => {
|
884
|
|
- sock.call("unknownRPC123", "AAAAA").catch(e => { }).then(x => {
|
885
|
|
- done(new Error("unexpected return value"))
|
886
|
|
- })
|
887
|
|
- }).catch(e => {
|
888
|
|
- done(e)
|
889
|
|
- })
|
890
|
|
- })
|
891
|
|
-
|
892
|
873
|
/*
|
893
|
874
|
* ## 1.11.0 breaking ##
|
894
|
875
|
*
|