diff --git a/compiler/crates/fixture-tests/src/lib.rs b/compiler/crates/fixture-tests/src/lib.rs index aca576b6cd4de..22a7760e7fddc 100644 --- a/compiler/crates/fixture-tests/src/lib.rs +++ b/compiler/crates/fixture-tests/src/lib.rs @@ -32,7 +32,7 @@ //! `tests/first_transform/mod.rs` exports the transform to test, for example: //! //! ```ignore -//! pub fn transform_fixture(fixture: &Fixture<'_>) -> Result { +//! pub async fn transform_fixture(fixture: &Fixture<'_>) -> Result { //! Ok(fixture.to_uppercase()) //! } //! ``` diff --git a/compiler/crates/fixture-tests/src/main.rs b/compiler/crates/fixture-tests/src/main.rs index 72d93d29cc91a..291b8977afd4d 100644 --- a/compiler/crates/fixture-tests/src/main.rs +++ b/compiler/crates/fixture-tests/src/main.rs @@ -93,11 +93,11 @@ fn main() { .map(|(_, test_case)| { let test_case_name = &test_case.name; format!( - r#"#[test] -fn {0}() {{ + r#"#[tokio::test] +async fn {0}() {{ let input = include_str!("{1}/fixtures/{2}"); let expected = include_str!("{1}/fixtures/{3}"); - test_fixture(transform_fixture, "{2}", "{1}/fixtures/{3}", input, expected); + test_fixture(transform_fixture, "{2}", "{1}/fixtures/{3}", input, expected).await; }}"#, test_case.name, &test_name,