Closed jjyr closed 1 year ago
@jjyr I noticed the test between Axon and Axon has failures but CI also passed, please see this:
https://github.com/synapseweb3/forcerelay/actions/runs/6309594521/job/17174053398?pr=334 (in Run IBC Tests
)
Details
The discussion is moved to https://github.com/synapseweb3/forcerelay/issues/339
This PR should be merged and #339 is not introduced in this PR.
Fix monitor silently crashed issue https://github.com/synapseweb3/forcerelay/pull/330#issuecomment-1727847526
We noticed sometimes CI returns success but the monitor thread is crashed silently, which is unexpected.
This PR adds code to check monitor is working at the end of ibc tests, and returns an error if it isn't working.
We call subscribe function of ChainEndpoint to check the monitor thread, if the monitor is crashed, the subscribe will return a
SendError
error, we converted it toError::Relayer
.