pytest: Fix flaky test_closing_id test#1473
Conversation
It simply wasn't waiting for us to register the peer before attempting to open a connection. Moved into a separate test to be able rerun multiple times. Signed-off-by: Christian Decker <decker.christian@gmail.com>
|
I wonder if this is good solution, though. If we use an automated system (i.e. a program that manages channels for you), and it decides to channel to a completely new peer, then the automated program would have to look into our c-lightning logs? It seems better if an automated system could connect and the |
|
In this case, I'm pretty sure the problem is that l1 has it closed, but not l2 yet. That's not a real problem, AFAICT, just a test artifact. |
|
But it seems to imply that the sequence |
|
We can check locally that the connection was closed, but not remotely, so there is little we can do but retry. |
It simply wasn't waiting for us to register the peer before attempting to open a
connection. Moved into a separate test to be able rerun multiple times.