This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a failing test that verifies we can subscribe to an RPC subscript…
…ion method (#3506) In rc2 there's a bug where `await rpcSubscriptions.anyNotifications().subscribe()` hangs. Unlike `rpc-api` [all tests in `rpc-subscriptions-api` are currently commented out. ](https://github.com/solana-labs/solana-web3.js/blob/master/packages/rpc-subscriptions-api/src/__tests__/account-notifications-test.ts) This PR adds a (currently failing) test to subscribe to notifications against the localhost test validator. Notes: - I've put this test in `rpc-subscriptions` rather than `rpc-subscriptions-api` because it relies on transport functions from `rpc-subscriptions`. If we wanted to build a full suite of `rpc-subscriptions-api` tests later then we should probably move these transport functions to a different package where they could be a dependency of `rpc-subscriptions-api`. We currently have `rpc-transport-http` for this on the `rpc-api` side. - I used `it.skip` instead of `it.failing` because the test times out rather than failing, and Jest doesn't treat that as a pass for `it.failing`. Anyway I don't plan to leave it failing long!
- Loading branch information