-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#[sqlx::test] macro failing to connect to the created database occasionally #2631
Comments
It may be already fixed by this PR: I'm gonna update to version 0.7.1 and see if the error stops happening! |
Update: The issue is still happening after the upgrade to sqlx 0.7.1.
|
Update: forcing tests to execute in serial (with just one thread) makes the error go away. I'm using nextest for it, so when I run like that: It would be great if |
Bug Description
The
#[sqlx::test]
macro is occasionally failing to connect to the created database.Error:
PS: it works fine most of the times, but occasionally it panics with this error.
Minimal Reproduction
The example from documentation should be enough, but informing
Pool<Postgres>
as the test function argument and with multiple tests functions.Info
rustc --version
: rustc 1.70.0 (90c541806 2023-05-31)Any ideas about why this is happening?
Should it be fixed in the most recent version? I just saw that 0.7.x was released, and I can upgrade it here :)
The text was updated successfully, but these errors were encountered: