Skip to content

Commit

Permalink
fixup: Fix E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amnn committed Jul 16, 2024
1 parent 687090e commit 01a0b21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/sui-graphql-rpc/src/server/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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()]
);
}

Expand Down Expand Up @@ -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(
Expand All @@ -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()]
);
}

Expand Down

0 comments on commit 01a0b21

Please sign in to comment.