Previously we waited only for the number of channels to become what we expected, but this wasn't enough. Sometimes the agent had't yet updated its internal balance, causing the test to fail with an unexpected balance.
Previously we waited only for the number of channels to become what we expected, but this wasn't enough. Sometimes the agent had't yet updated its internal balance, causing the test to fail with an unexpected balance.