Skip to content

Commit 6c38d43

Browse files
committed
test-store: Remove unneeded mutability
1 parent c55aeef commit 6c38d43

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

store/test-store/tests/postgres/relational.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ async fn conflicting_entity() {
10301030
assert_eq!(None, conflict);
10311031
}
10321032

1033-
run_test(async |mut conn, layout| {
1033+
run_test(async |conn, layout| {
10341034
let id = Value::String("fred".to_string());
10351035
check(conn, layout, id, "Cat", "Dog", "Ferret", 0).await;
10361036

@@ -1259,7 +1259,7 @@ impl EasyOrder for EntityQuery {
12591259
expected = "layout.query failed to execute query: FulltextQueryInvalidSyntax(\"syntax error in tsquery: \\\"Jono 'a\\\"\")"
12601260
)]
12611261
async fn check_fulltext_search_syntax_error() {
1262-
run_test(async |mut conn, layout| {
1262+
run_test(async |conn, layout| {
12631263
QueryChecker::new(conn, layout)
12641264
.await
12651265
.check(
@@ -1276,7 +1276,7 @@ async fn check_fulltext_search_syntax_error() {
12761276

12771277
#[graph::test]
12781278
async fn check_block_finds() {
1279-
run_test(async |mut conn, layout| {
1279+
run_test(async |conn, layout| {
12801280
let checker = QueryChecker::new(conn, layout).await;
12811281

12821282
update_user_entity(
@@ -1322,7 +1322,7 @@ async fn check_block_finds() {
13221322

13231323
#[graph::test]
13241324
async fn check_find() {
1325-
run_test(async |mut conn, layout| {
1325+
run_test(async |conn, layout| {
13261326
// find with interfaces
13271327
let types = vec![&*CAT_TYPE, &*DOG_TYPE];
13281328
let checker = QueryChecker::new(conn, layout)

store/test-store/tests/postgres/relational_bytes.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ async fn bad_id() {
270270

271271
#[graph::test]
272272
async fn find() {
273-
run_test(async |mut conn, layout| {
273+
run_test(async |conn, layout| {
274274
async fn find_entity(
275275
conn: &mut AsyncPgConnection,
276276
layout: &Layout,
@@ -301,7 +301,7 @@ async fn find() {
301301

302302
#[graph::test]
303303
async fn find_many() {
304-
run_test(async |mut conn, layout| {
304+
run_test(async |conn, layout| {
305305
const ID: &str = "0xdeadbeef";
306306
const NAME: &str = "Beef";
307307
const ID2: &str = "0xdeadbeef02";
@@ -335,7 +335,7 @@ async fn find_many() {
335335

336336
#[graph::test]
337337
async fn update() {
338-
run_test(async |mut conn, layout| {
338+
run_test(async |conn, layout| {
339339
insert_entity(conn, layout, "Thing", BEEF_ENTITY.clone()).await;
340340

341341
// Update the entity
@@ -366,7 +366,7 @@ async fn update() {
366366

367367
#[graph::test]
368368
async fn delete() {
369-
run_test(async |mut conn, layout| {
369+
run_test(async |conn, layout| {
370370
const TWO_ID: &str = "deadbeef02";
371371

372372
insert_entity(conn, layout, "Thing", BEEF_ENTITY.clone()).await;
@@ -483,7 +483,7 @@ async fn query() {
483483
.collect::<Vec<_>>()
484484
}
485485

486-
run_test(async |mut conn, layout| {
486+
run_test(async |conn, layout| {
487487
// This test exercises the different types of queries we generate;
488488
// the type of query is based on knowledge of what the test data
489489
// looks like, not on just an inference from the GraphQL model.

0 commit comments

Comments
 (0)