TFChain WebSocket auto-reconnect, health endpoint, E2E data tests, CI smoke tests #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_tfchain_reconnect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Arc<RwLock<Client>>with background health check every 30s, automatic reconnect on failureGET /api/healthreturns chain status, network, latest block number (or 503 if disconnected)e2e/tests/helpers/login.tsTest Status
Files Changed
Backend (reconnect + health):
crates/backend/Cargo.toml— tokio sync+time featurescrates/backend/src/state.rs—Arc<RwLock<Client>>,check_chain_health(),reconnect()crates/backend/src/api.rs— read locks on all handlers, API clone for submits,health_checkendpointcrates/backend/src/main.rs— background health task,/api/healthrouteSmoke tests:
scripts/smoke-test.sh— 11 new tests (health, balance numerics, transfer prepare fields/errors)E2E tests:
e2e/tests/helpers/login.ts— shared login helper (new)e2e/tests/post-login-data.spec.ts— 7 data verification tests (new)e2e/tests/wallet-connect.spec.ts— refactored to use helpere2e/tests/vault-flow.spec.ts— refactored to use helperCI:
.forgejo/workflows/test.yml— live gateway smoke tests in PR checks.forgejo/workflows/deploy-staging.yml— post-deploy smoke tests (wait + backend + gateway)Supersedes #13 (branch renamed to follow
development_*convention).Closes #12
WIP: TFChain WebSocket auto-reconnect, health endpoint, E2E data tests, CI smoke teststo TFChain WebSocket auto-reconnect, health endpoint, E2E data tests, CI smoke tests