Skip to content

Contract tests vitest worker timeout error during test run #315

@Mosas2000

Description

@Mosas2000

Summary

During contract test execution, vitest encounters an unhandled timeout error that may cause false positive test results.

Error Message

Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

Error: [vitest-worker]: Timeout calling "onTaskUpdate"
  at Object.onTimeoutError node_modules/vitest/dist/chunks/rpc.-pEldfrD.js:53:10
  at Timeout._onTimeout node_modules/vitest/dist/chunks/index.B521nVV-.js:59:62

Test Results

Reproduction

npm test

Environment

  • vitest: ^3.2.4
  • clarinet-sdk: ^3.6.0

Proposed Fix

  1. Investigate if the timeout is caused by long-running simnet operations
  2. Consider increasing vitest timeout configuration
  3. Check if parallel test execution is causing resource contention
  4. Review vitest-environment-clarinet configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions