Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
2 replies
Vincent

Hello! 👋 We're running into these

Hello! 👋 We're running into these errors quite a lot.

================================================================================
Failed to pop isolated storage stack frame in test/room/websockets.test.ts's test "sent ops are received over WebSocket by connected clients on V7".
This usually means your Worker tried to access storage outside of a test.
In particular, we were unable to pop Durable Objects storage.
Ensure you `await` all `Promise`s that read or write to these services.

- AssertionError [ERR_ASSERTION]: Expected .sqlite, got /var/folders/ph/xtwbrg097hsby7l_v3yzqksh0000gn/T/miniflare-8aaec0213628bbac2ba6d110f6fce865/do/vitest-pool-workers-runner--__VITEST_POOL_WORKERS_USER_OBJECTRoom/1085f9c32aa7663554f69f6c3f0813434092fa3508aeaf220862b2e0d23efe56.sqlite-shm
================================================================================


I'm sure we're missing an await somewhere, but our test suite is pretty big, and it's like looking for a needle in a haystack. Any tips on narrowing down which test might be the culprit? We haven't been able to bisect our big test suite, because the error doesn't happen consistently.

Any tips would be more than welcome. Would it be possible to add a bit more data/context to the error?
Was this page helpful?