Describe the bug
The getSyncingStats test fails when the RPC returns false. The test expects an object matching the SyncingStatus schema, but doesn't handle the case where false is returned, which is a valid response.
To Reproduce
Run the RPC provider tests using a synced Juno node(then result should be false). E.g:
TEST_RPC_URL=https://free-rpc.nethermind.io/sepolia-juno npm run test -- -t getSyncingStats
Observe the failure
Expected behavior
Test should pass when starknet_syncing results is false
Desktop (please complete the following information):
Describe the bug The getSyncingStats test fails when the RPC returns false. The test expects an object matching the SyncingStatus schema, but doesn't handle the case where false is returned, which is a valid response.
To Reproduce
Run the RPC provider tests using a synced Juno node(then result should be false). E.g:
TEST_RPC_URL=https://free-rpc.nethermind.io/sepolia-juno npm run test -- -t getSyncingStats
Observe the failure
Expected behavior Test should pass when starknet_syncing results is false
Desktop (please complete the following information):