Replies: 1 comment
-
When using
Which gets triggered when initializing redis client here: let redis_store = bb8_redis::bb8::Pool::builder()
.max_size(15)
.build(manager)
.await
.expect("Failed to create redis pool."); Otherwise problem would be solved with that macro |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am quite new in rust & axum world and now I am writing integration tests that use postgresql and redis containers. I am trying to figure out what is the optimal way to reset the db after each test? During each test I have setup script that initializes db and redis + migrates the db but I have no clue what could be proper way to reset the db? (like best practice)
I have also unit tests for db itself where I use sqlx::test macro which handles that problem perfectly but that macro cannot be used because I need tokio runtime in integration tests.
Setup script
Example test
Beta Was this translation helpful? Give feedback.
All reactions