I wrote some unit tests for some of my sqlx code that's async. These tests together in the same file with the source code that they testing but I'd like to move them out to integration testing.
My test is annotated with the tokio runtime like this.
#[tokio::test]
async fn test_insert_find_update_delete_flow() -> sqlx::Result<()> {
// top secret code here
}
but now in the integration testing I'm getting the error
error[E0433]: failed to resolve: could not find `prelude` in `core`
--> tests/it/repo/sqlx_repo/material_repo_test.rs:30:1
|
30 | #[tokio::test]
| ^^^^^^^^^^^^^^ could not find `prelude` in `core`
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
Does any one know why this happens?