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

Fix failing hardhat tests #1165

Open
gabriel-aranha-cw opened this issue Jun 18, 2024 · 0 comments
Open

Fix failing hardhat tests #1165

gabriel-aranha-cw opened this issue Jun 18, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@gabriel-aranha-cw
Copy link
Contributor

gabriel-aranha-cw commented Jun 18, 2024

Some hardhat tests are failing. Would be important to fix them to enable hardhat tests on CI and to validate if there are no missing compatibility on Stratus.

Command: just e2e-hardhat automine
hardhat.log

1) JSON-RPC
       Evm
         evm_setNextBlockTimestamp
           Should reset the changes when sending 0:

      AssertionError: expected 1718748550 to be at most 1718748539
      + expected - actual

      -1718748550
      +1718748539
      
      at Context.<anonymous> (test/automine/e2e-json-rpc.test.ts:159:22)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

  2) JSON-RPC
       Evm
         evm_setNextBlockTimestamp
           Should handle negative offsets:

      AssertionError: expected 1718748552 to equal 1718748539
      + expected - actual

      -1718748552
      +1718748539
      
      at Context.<anonymous> (test/automine/e2e-json-rpc.test.ts:167:52)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

  3) JSON-RPC
       Subscription
         HTTP
           eth_subscribe fails with code 32603:
     TypeError: Cannot read properties of undefined (reading 'code')
      at Context.<anonymous> (test/automine/e2e-json-rpc.test.ts:184:30)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

  4) Transaction: serial TestContractBalances
       Generates logs:

      AssertionError: expected [] to have a length of 1 but got +0
      + expected - actual

      -0
      +1
      
      at Context.<anonymous> (test/automine/e2e-tx-serial-contract.test.ts:162:90)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

@gabriel-aranha-cw gabriel-aranha-cw added the bug Something isn't working label Jun 19, 2024
@arthurmm-cloudwalk arthurmm-cloudwalk added this to the Version 1.0.0 milestone Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants