mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-22 23:54:20 +01:00
@@ -160,7 +160,7 @@ def recvmsg(plugin, request, last_id=None, **kwargs):
|
||||
Returns a `concurrent.futures.Future`.
|
||||
Optional parameter `last_id` can be supplied to return an older message.
|
||||
"""
|
||||
next_id = int(last_id) + 1 if last_id is not None else len(plugin.messages)
|
||||
next_id = int(last_id) if last_id is not None else len(plugin.messages)
|
||||
if next_id < len(plugin.messages):
|
||||
res = plugin.messages[int(last_id)].to_dict()
|
||||
res['total_messages'] = len(plugin.messages)
|
||||
|
||||
@@ -143,7 +143,6 @@ def test_forward_ok(node_factory, executor):
|
||||
assert(m2['verified'] is True)
|
||||
|
||||
|
||||
@pytest.mark.xfail(raises=concurrent.futures._base.TimeoutError)
|
||||
def test_read_tip(node_factory, executor):
|
||||
"""Testcase for issue #331 https://github.com/lightningd/plugins/issues/331
|
||||
|
||||
|
||||
Reference in New Issue
Block a user