Skip to content

Commit

Permalink
test: fix occasional flakiness in new::create_many::single_col::foo
Browse files Browse the repository at this point in the history
This tests sometimes returns records in a different order. This happened
at least ones with `pg` driver adapter and `query-compiler-wasm`.
Technically the assertion is not correct indeed, the order is not
defined unless there's an explicit `orderBy` clause.
  • Loading branch information
aqrln committed Feb 17, 2025
1 parent 37761cd commit a9055b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ mod single_col {
);

insta::assert_snapshot!(
run_query!(&runner, "query { findManyTestModel { id }}"),
run_query!(&runner, "query { findManyTestModel(orderBy: { id: asc }) { id }}"),
@r###"{"data":{"findManyTestModel":[{"id":1},{"id":2}]}}"###
);

Expand Down

0 comments on commit a9055b8

Please sign in to comment.