mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
896 stars 198 forks source link

Refactor test suite to support starting components asynchronously #157

Open mszulcz-mitre opened 2 years ago

mszulcz-mitre commented 2 years ago

This pull request addresses Issue #127.

mszulcz-mitre commented 2 years ago

@HalosGhost So far, the only commit in this PR addresses the specific issue we previously discussed: the inability of the atomizer to wait to sync with watchtowers in atomizer_end_to_end_test.cpp. On my machine, at least, this commit makes the previous call to sleep between initializing the watchtowers and atomizer in the test unnecessary (line 50): https://github.com/mit-dci/opencbdc-tx/blob/9daab811e54e7a489b715caaaa46aff3734d2566/tests/integration/atomizer_end_to_end_test.cpp#L46-L52

Is this sufficient to fix this test? I doubt it--but I don't have any way of knowing for certain right now. Unfortunately, I still can't reproduce the failures described by Issues #119 and #127. I've followed the instructions in #119:

I've also tried the following:

I recall that you may have mentioned some other way to try to trigger the problems. Could you please remind me what you said?