Skip to content

flaky timeout error on v2-periphery test #205

@sekisamu

Description

@sekisamu

Description

I've treid with latest update of polkadot-sdk(commit version: 8ab9a68e4f1185685206d581bd018bd7d0d7f051), the good news is the test cases of v2-core run well, while v2-periphery always fail with Timeout error, but this could happen to different test cases, seems random.

Env

polkadot-sdk: 8ab9a68e4f1185685206d581bd018bd7d0d7f051
test repo: GitHub - papermoonio/v2-periphery-polkadot at revm

How to reproduce

  1. clone the repo and build
git clone https://github.com/papermoonio/v2-periphery-polkadot
cd v2-periphery-polkadot
git checkout revm
npm install
  1. Test

remember to start the local revive-dev-node first.

npx hardhat test --network local

the error log is

  1) ExampleComputeLiquidityValue
       #getLiquidityValue
         fee on
           correct after swap:
     Error: Timeout of 100000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/maggie/workspace/blockchain/paritytech/v2-periphery-polkadot/test/ExampleComputeLiquidityValue.spec.ts)
      at listOnTimeout (node:internal/timers:594:17)
      at processTimers (node:internal/timers:529:7)

And this error could also happen to other cases as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions