Skip to content

Commit ed2cd59

Browse files
author
MarcoFalke
committed
Merge #8214: [qa] mininode: fail on send_message instead of silent return
facb6c0 [qa] mininode: fail on send_message instead of silent return (MarcoFalke)
2 parents 66db2d6 + facb6c0 commit ed2cd59

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)