Open ilmoi opened 2 years ago
Does make test
work? Perhaps the docker container did not start properly 🤔 ..
Weirdly... it does. Oh man this isn't helpful is it. Am getting an error for another test, but I saw that's already brought up in a different thread:
@pytest.mark.asyncio
@pytest.mark.integration
async def test_multiple_subscriptions(
stubbed_sender: Keypair,
test_http_client_async: AsyncClient,
multiple_subscriptions: List[RequestBody],
websocket: SolanaWsClientProtocol,
):
"""Test subscribing to multiple feeds."""
await test_http_client_async.request_airdrop(stubbed_sender.public_key, AIRDROP_AMOUNT)
async for idx, message in asyncstdlib.enumerate(websocket):
assert message.result is not None
if idx == len(multiple_subscriptions) - 1:
break
balance = await test_http_client_async.get_balance(
stubbed_sender.public_key,
)
> assert balance["result"]["value"] == AIRDROP_AMOUNT
E assert 29986902600 == 10000000000
E +29986902600
E -10000000000
tests/integration/test_websockets.py:166: AssertionError
Any ideas on how I might be able to only run test_get_signatures_for_address
or we stuck in docker black magic land?
Running this command:
Leads to this error:
Not the case for all integration tests, eg the airdrop ones pass, so can't be a pure docker issue. Unit tests also all pass.
What might be causing this?