-
Notifications
You must be signed in to change notification settings - Fork 786
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
🐛 BUG: Durable Object tests won't run, .sqlite
error
#5629
Comments
We're having the same issue, commenting out |
I ran into this issue, so sad I spent time digging. Is there any updates on the PR that was raised to fix it? |
Hi @shonubijerry, I'm not sure how to fix this one as I don't know enough about SQLite. I've patched the node module for now (using |
hi, I'm going to share my experience which worked for me. According to docs (https://developers.cloudflare.com/workers/runtime-apis/rpc/lifecycle/#explicit-resource-management) you must dispose stubs after have used them, doing: stub response have a dispose interface on them, which must be called as
or just use:
described here https://developers.cloudflare.com/workers/testing/vitest-integration/test-apis/#durable-objects |
Thanks everyone, and thanks @feliperohdee for the links. It looks like it's worth at the very least making this error message more helpful. I'll add it to our work backlog. |
Was getting the same error and the natural thing to try was disposing my DO like @feliperohdee. |
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What version(s) of the tool(s) are you using?
0.1.19 [@cloudflare/vitest-pool-workers], 1.3.0 [vitest]
What version of Node are you using?
v20.7.0
What operating system and version are you using?
Mac Sonoma 14.4.1
Describe the Bug
Observed behavior
Tests fail with a fatal error when a
fetch
response body is not consumed by tests.That error is very confusing.
Please provide a link to a minimal reproduction
https://github.com/punkeel/repro-5629
Run
make
to run tests.The text was updated successfully, but these errors were encountered: