aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-05-22 11:37:42 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-06-17 13:31:31 +0200
commitfacb6c0bf8a6ef7081d763d9f33b446276a36635 (patch)
tree57729020c75758682aa107b163a2922f1b79f1e5 /qa
parent66db2d62d59817320c9182fc18e75a93b76828ea (diff)
[qa] mininode: fail on send_message instead of silent return
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/test_framework/mininode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py
index c0b59f3857..6612b99b84 100755
--- a/qa/rpc-tests/test_framework/mininode.py
+++ b/qa/rpc-tests/test_framework/mininode.py
@@ -1315,7 +1315,7 @@ class NodeConn(asyncore.dispatcher):
def send_message(self, message, pushbuf=False):
if self.state != "connected" and not pushbuf:
- return
+ raise IOError('Not connected, no pushbuf')
self.show_debug_msg("Send %s" % repr(message))
command = message.command
data = message.serialize()