You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offline emergency-switch tests start public testnet requests during setup #6470
PastaClaw flagged this while reviewing #6242, where it was deferred to a follow-up instead of being fixed in that pull request. This issue tracks the follow-up.
Offline emergency-switch tests start public testnet requests during setup (suggestion)
Impact: Developers and CI runners executing this class trigger outbound requests to the public testnet quorum service even though all three tests check local validation.
Where:packages/kotlin-sdk/sdk/src/androidTest/kotlin/org/dashfoundation/dashsdk/EmergencySwitchesFfiTest.kt:37-40 at 60c0c6b271b8:
The switch calls reject their inputs locally, but each test's @Before schedules a network refresh. With network = 1 and quorumUrl = null, createTrusted selects https://quorums.testnet.networks.dash.org. After constructing the SDK, dash_sdk_create_with_fixed_provider spawns refresh_quorum_caches(), which requests /quorums and /previous. The tests do not await that task, so they can pass without connectivity while still attempting external requests. Set the fixture's quorumUrl to a loopback stub so the test keeps the live handle it needs to reach the real FFI parser without contacting testnet.
Activity