Skip to content

Commit facb6c0

Browse files
author
MarcoFalke
committed
[qa] mininode: fail on send_message instead of silent return
1 parent 66db2d6 commit facb6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/rpc-tests/test_framework/mininode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ def got_data(self):
13151315

13161316
def send_message(self, message, pushbuf=False):
13171317
if self.state != "connected" and not pushbuf:
1318-
return
1318+
raise IOError('Not connected, no pushbuf')
13191319
self.show_debug_msg("Send %s" % repr(message))
13201320
command = message.command
13211321
data = message.serialize()

0 commit comments

Comments
 (0)