talaia-labs / rust-teos

The Eye of Satoshi - Lightning Watchtower
https://talaia.watch
MIT License
128 stars 62 forks source link

test.py::test_watchtower - AssertionError: assert 'FUNDING_SPEND_SEEN' == 'ONCHAIN' #163

Closed sr-gi closed 1 year ago

sr-gi commented 1 year ago

Every now and then test.py::test_watchtower fails with AssertionError: assert 'FUNDING_SPEND_SEEN' == 'ONCHAIN'.

This may be due to the check happening too quickly, so the state may have not yet changed. Add either a longer wait or use the logs to parse the proper message before checking. e.g:

l1.daemon.wait_for_log("message_to_look_for")