-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingest/ledgerbackend: Fix flaky Captive Core tests (#3213)
This commit fixes two issues that cause Captive Core tests flaky: * It was possible that `bufferedLedgerMetaReader` go routine was still running after calling `CaptiveStellarCore.Close()` because it returned only when getting an exit signal from `stellarCoreRunner` (could happen after `CaptiveStellarCore.Close()`). To fix it a new `WaitForClose()` method was created that blocks until go routine returns. * `bufferedLedgerMetaReader.readLedgerMetaFromPipe()` was retuning error on Stellar-Core process graceful exit. Now it returns an error only when Stellar-Core was closed with an error.
- Loading branch information
Showing
4 changed files
with
201 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.