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

Document Suggested Method: Prisma Integration Testing Does Not Wait For the Testing Database in Docker #4774

Open
kwan19961217 opened this issue May 16, 2023 · 0 comments
Labels
docs Documentation creation, updates or corrections size: S more than one hour, up to one day

Comments

@kwan19961217
Copy link

Discussed in prisma/prisma#19245

So I have found out that the official document and the blog post related to this is not consistent:

  1. Official Document's script does not work as the it cannot connect to the database
  2. Blog post's suggested method add a part to check the database's readiness. However, it does not do it correctly and actually wait 15 seconds, therefore the test is able to run because the database is always ready after the timeout.

I have found out a solution after some digging and posted it on the original discussion.
I am wondering if the official document should be updated on the related section?

@kwan19961217 kwan19961217 added the docs Documentation creation, updates or corrections label May 16, 2023
@ruheni ruheni added the size: S more than one hour, up to one day label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation creation, updates or corrections size: S more than one hour, up to one day
Projects
None yet
Development

No branches or pull requests

2 participants