You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the client and test_user parameter are interchanged like this: test_user: User, client, test still fails with the same error but in this line: Otp.create(user_id=test_user.id). So whichever goes first, it closes the connection unexpectedly.
Describe the bug
Whenever I'm testing my API built with Litestar and Tortoise ORM, the connection closes if there's an interac
To Reproduce
The test_user is a fixture that creates a test user. But once it does the test fails with connection closed error at this line:
If the client and test_user parameter are interchanged like this:
test_user: User, client
, test still fails with the same error but in this line:Otp.create(user_id=test_user.id)
. So whichever goes first, it closes the connection unexpectedly.Here's my db config:
The text was updated successfully, but these errors were encountered: