So I have multiple instances of bitcoind in regtest mode. 1 instance is for the app wallet and one stimulates a wallet of a possible user.
I want to perform various functional and integration tests of the app.
Basic example, if user sends bitcoin from his wallet is that bitcoin correctly received by the app.
The problem though is that there is a time delay before that receiving node notices the transaction (even when both instances are on same machine). This screws up my tests, I tried putting in a sleep(10) function in my test code and that increases the success, but sometimes they still fail and I cant have my automated tests taking so long. (plus its seems very inelegant).
I'm wondering how others deal with this.