Loading
test(bifrost): stabilize mock RPC fixtures in CI
The unit-tests job for !5104 failed at commit c4a227446f with three requests to local mock servers timing out:
ObserverSuite.SetUpSuite: EVM chain-ID request exceeded its 5-second deadline.BlockScannerTestSuite.TestDirectERC20TransferFeatureFlag: Ethereum receipt request exceeded its 1-second deadline.CoverageBackfillSuite.SetUpTest: TCP connection to the mock BTC wallet server timed out.
A retry of the same commit passed. This supports an intermittent test-environment failure.
This change gives the three fixtures explicit 30-second RPC deadlines, closes previously unclosed observer mock servers and Ethereum scanner servers, RPC clients, and databases, and removes the shared error variable from the observer RPC handler. All changes are confined to test code.
The UTXO deadline bounds its mock RPC calls; this change does not establish or claim to eliminate the original TCP connection-timeout cause.
Validation:
- Full
make test-coverage-sum: 2,104 tests, four skipped, no failures. - Full observer, Ethereum, and UTXO package tests with mocknet tags.
- Three race-detector repetitions of each affected suite.
- Controlled delayed responses reproduced the Ethereum and observer failures with the old deadlines and passed with the updated fixtures.