-
Notifications
You must be signed in to change notification settings - Fork 48
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
Creating tenant in tests #67
Comments
Try the option described here That worked for me. I decided to ignore tests to check if Triplex.create works because that's essentially testing the module again. |
Yes, for the first tenant creation that works, the problem is that the application needs to create a tenant on demand from a request. That's what I'm testing. |
Same issue I had. I just resolved that "If it can make one, it can make another if I pass the right params" so instead of testing Tenant.create, I test my logic that handles that request. It's sort of like testing GenServer calls and not the entire GenServer process. I know it's limiting but it works. |
After seeing how |
Saw #61 but I still get an error
{:error, "connection not available and request was dropped from queue after XXms. You can configure how long requests wait in the queue using :queue_target and :queue_interval. See DBConnection.start_link/2 for more information"}
For context I'm calling
Triplex.create
inside the test.The text was updated successfully, but these errors were encountered: