From 01a0b219761dc978cef6f4c43fb54177461a9cc2 Mon Sep 17 00:00:00 2001 From: Ashok Menon Date: Tue, 16 Jul 2024 12:37:47 +0100 Subject: [PATCH] fixup: Fix E2E tests --- crates/sui-graphql-rpc/src/server/builder.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/sui-graphql-rpc/src/server/builder.rs b/crates/sui-graphql-rpc/src/server/builder.rs index 01f70dd20d390c..5ee5ce98af705f 100644 --- a/crates/sui-graphql-rpc/src/server/builder.rs +++ b/crates/sui-graphql-rpc/src/server/builder.rs @@ -899,7 +899,7 @@ pub mod tests { assert_eq!( errs, - vec!["Query has too many levels of nesting 1. The maximum allowed is 0".to_string()] + vec!["Query nesting is over 0".to_string()] ); let errs: Vec<_> = exec_query_depth_limit( 2, @@ -913,7 +913,7 @@ pub mod tests { .collect(); assert_eq!( errs, - vec!["Query has too many levels of nesting 3. The maximum allowed is 2".to_string()] + vec!["Query nesting is over 2".to_string()] ); } @@ -956,7 +956,7 @@ pub mod tests { .collect(); assert_eq!( err, - vec!["Query has too many nodes 1. The maximum allowed is 0".to_string()] + vec!["Query has over 0 nodes".to_string()] ); let err: Vec<_> = exec_query_node_limit( @@ -971,7 +971,7 @@ pub mod tests { .collect(); assert_eq!( err, - vec!["Query has too many nodes 5. The maximum allowed is 4".to_string()] + vec!["Query has over 4 nodes".to_string()] ); }