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

Multiple Prisma clients warning when running tests #51

Open
fmaclen opened this issue Aug 26, 2022 · 1 comment
Open

Multiple Prisma clients warning when running tests #51

fmaclen opened this issue Aug 26, 2022 · 1 comment
Labels
blocked Task can't be completed until something else is addressed bug Something isn't working SvelteKit Involves SvelteKit's code tech debt Tasks that aim to make the codebase more maintainable

Comments

@fmaclen
Copy link
Owner

fmaclen commented Aug 26, 2022

warn(prisma-client) There are already 10 instances of Prisma Client actively running.
  • Needed to instantiate new PrismaClient's in some cases because the queries appear to returned cached data.
  • These additional Prisma clients were instantiated as uncachedPrisma.
  • uncachedPrisma.$disconnect() is called after using them but it doesn't seem like that is removing them correctly.
@fmaclen fmaclen added bug Something isn't working SvelteKit Involves SvelteKit's code labels Aug 26, 2022
@fmaclen
Copy link
Owner Author

fmaclen commented Sep 12, 2022

@fmaclen fmaclen added the blocked Task can't be completed until something else is addressed label Sep 12, 2022
@fmaclen fmaclen added the tech debt Tasks that aim to make the codebase more maintainable label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Task can't be completed until something else is addressed bug Something isn't working SvelteKit Involves SvelteKit's code tech debt Tasks that aim to make the codebase more maintainable
Projects
None yet
Development

No branches or pull requests

1 participant