From d8d9452e4afea50c60a96d7f240998e5c11639ed Mon Sep 17 00:00:00 2001 From: Flavian Desverne Date: Wed, 21 Sep 2022 11:28:32 +0200 Subject: [PATCH] fix: tests after occ and ref integrity changes --- .../tests/new/ref_actions/on_update/restrict.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/restrict.rs b/query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/restrict.rs index 1ca31a1e6349..fb86d5491fa2 100644 --- a/query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/restrict.rs +++ b/query-engine/connector-test-kit-rs/query-engine-tests/tests/new/ref_actions/on_update/restrict.rs @@ -334,11 +334,11 @@ mod one2many_req { // Linking field updated but no child connected: works insta::assert_snapshot!( - run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u2" }) { count }}"#), + run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u22" }) { count }}"#), @r###"{"data":{"updateManyParent":{"count":1}}}"### ); - // Child connected but no linking field updated: works + // No child connected and no linking field updated: works insta::assert_snapshot!( run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { name: "Alice2" }) { count }}"#), @r###"{"data":{"updateManyParent":{"count":1}}}"### @@ -476,11 +476,11 @@ mod one2many_opt { // Linking field updated but no child connected: works insta::assert_snapshot!( - run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u2" }) { count }}"#), + run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u22" }) { count }}"#), @r###"{"data":{"updateManyParent":{"count":1}}}"### ); - // Child connected but no linking field updated: works + // No connected and no linking field updated: works insta::assert_snapshot!( run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { name: "Alice2" }) { count }}"#), @r###"{"data":{"updateManyParent":{"count":1}}}"###