Replies: 1 comment 2 replies
-
|
Seems like your tests are concurrently trying to apply migrations, which then fails in postgres with a race condition. There is nothing diesel can do there. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Backend
PostgreSQL
Diesel version
2.3.0
Diesel Features
"chrono", "uuid", "serde_json"
Operating System Version
Ubuntu 25.10
Third party libraries
diesel_migrations, diesel-async, c
What do you want to do?
I have an empty database that is created by my test environment. When running the integration tests i want to setup a connection pool and run all embedded migrations.
Compile time error
I get a runtime error when running
cargo test:What code do you already have?
My SQL table setup looks like this:
Inside my tests i always perform
init_test_databaseat startup (on the same URL always)Additional details
Checklist
Beta Was this translation helpful? Give feedback.
All reactions