Skip to content

Commit

Permalink
update tests related to unsupported nested queries
Browse files Browse the repository at this point in the history
The message about unsupported nested queries has changed to be more specific to nested queries in SOQL SELECT clause. Tests that check for the message need to be updated too.
  • Loading branch information
ashitsalesforce committed Oct 23, 2023
1 parent 597ac03 commit 676b9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void testNoFrom() {
@Test
public void testNestedQuery() {
runInvalidQueryTest("select id, (select name from contacts) from account blarney",
"Nested queries are not supported");
"Nested queries are not supported in SOQL SELECT clause");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ protected void runTestNestedQueryErrorsCorrectly() throws ProcessInitializationE
soql = "Select Account.Name, (Select Contact.LastName FROM Account.Contacts) FROM Account";
argmap = getTestConfig(soql, "Account", false);
// this error message to change
runProcessNegative(argmap, "Invalid soql: Nested queries are not supported");
runProcessNegative(argmap, "Invalid soql: Nested queries are not supported in SOQL SELECT clause");
}

public abstract void testSoqlWithRelationships() throws Exception;
Expand Down

0 comments on commit 676b9e4

Please sign in to comment.