Skip to content

Commit

Permalink
Fix mistake in sqlx::test fixtures docs (#3604)
Browse files Browse the repository at this point in the history
Alternative option for the sqlx::test fixtures referenced the same fixture twice
  • Loading branch information
andreweggleston authored Nov 26, 2024
1 parent 8031460 commit 8dfd3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ use sqlx::PgPool;
use serde_json::json;
// Alternatives:
// #[sqlx::test(fixtures("./fixtures/users.sql", "./fixtures/users.sql"))]
// #[sqlx::test(fixtures("./fixtures/users.sql", "./fixtures/posts.sql"))]
// or
// #[sqlx::test(fixtures(path = "./fixtures", scripts("users", "posts")))]
#[sqlx::test(fixtures("users", "posts"))]
Expand Down

0 comments on commit 8dfd3e0

Please sign in to comment.