Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit tests fails #59

Open
jiangying000 opened this issue Aug 5, 2022 · 0 comments
Open

unit tests fails #59

jiangying000 opened this issue Aug 5, 2022 · 0 comments

Comments

@jiangying000
Copy link

run: yarn test:unit

fails with:

Test Suites: 4 failed, 8 passed, 12 total
Tests:       11 failed, 69 passed, 80 total

some of them:

  ● websocket-provider › getBlock

    expect(received).toBe(expected) // Object.is equality

    Expected: "0x1"
    Received: "0x00000000000000000000000000000001"

      14 |   test('getBlock', async () => {
      15 |     const block = await provider.getBlock(0);
    > 16 |     expect(block.header.author).toBe('0x1');
         |                                 ^
      17 |   });

  ● jsonrpc-provider › getTransactionEvents

    processing response error (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32602,\"message\":\"from_block is too far, max block range is 32 \"},\"id\":61}\n", error={"code
":-32602}, requestBody="{\"method\":\"chain.get_events\",\"params\":[{\"event_keys\":[]}],\"id\":61,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://main-seed.starcoi
n.org", code=SERVER_ERROR, version=web/5.1.0)



  ● jsonrpc-provider › txn sign using sender password and submit
  
    processing response error (body="{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":75}\n", error={"code":-32601}, requestBody="{\"me
  thod\":\"stc_accounts\",\"params\":[],\"id\":75,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="https://main-seed.starcoin.org", code=SERVER_ERROR, version=web/5.1.0)       
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant