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

Unexpected message on Worker #2882

Closed
6 tasks done
yunsii opened this issue Feb 17, 2023 · 1 comment
Closed
6 tasks done

Unexpected message on Worker #2882

yunsii opened this issue Feb 17, 2023 · 1 comment

Comments

@yunsii
Copy link

yunsii commented Feb 17, 2023

Describe the bug

I got the unhandled error when I wrote a basic test of crawlee.
image

Reproduction

https://github.com/yunsii/vitest-crawlee

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
    Memory: 11.85 GB / 19.54 GB
    Container: Yes
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 107.0.5304.121
  npmPackages:
    @vitest/ui: ^0.28.5 => 0.28.5 
    vite: ^4.1.1 => 4.1.1 
    vitest: ^0.28.5 => 0.28.5

Used Package Manager

pnpm

Validations

@sheremet-va
Copy link
Member

You cannot use features that check for isMainThread because Vitest runs tests in worker threads by default. To bypass this, you can disable this:

// vitest 0.34.6
vitest --no-threads

// vitest 1.0.0
vitest --pool=forks

@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants