Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plugin test failures #2109

Closed
wants to merge 3 commits into from
Closed

Fix plugin test failures #2109

wants to merge 3 commits into from

Conversation

gimantha
Copy link
Contributor

@gimantha gimantha commented Nov 26, 2024

Purpose

Relates to #2107

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility
  • No commons package changes (if there are any, please update the GraphQL version in GraphQL tools and Ballerina dev tools)
  • No compiler package changes (if there are any, please update the GraphQL version in Ballerina dev tools)

@@ -985,7 +985,7 @@ public void testAnonymousRecordsAsFieldType() {

diagnostic = diagnosticIterator.next();
message = getErrorMessage(CompilationDiagnostic.INVALID_ANONYMOUS_FIELD_TYPE,
"record {|string name; int age;|}", "Query.class.profile");
"record {|string name; int age;|}", "Query.'class.profile");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This quote is invalid. Is there a place we missed to escape?

Suggested change
"record {|string name; int age;|}", "Query.'class.profile");
"record {|string name; int age;|}", "Query.class.profile");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThisaruGuruge, this is compile time error, as the resource path has the quote, it is now visible in errors also. Runtime behavior is not changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a discussion with @DimuthuMadushan .. will reevaluate

@@ -1044,7 +1044,7 @@ public void testInvalidUseOfReservedFederatedTypeNames() {
Iterator<Diagnostic> diagnosticIterator = diagnosticResult.errors().iterator();

Diagnostic diagnostic = diagnosticIterator.next();
String message = getErrorMessage(CompilationDiagnostic.INVALID_USE_OF_RESERVED_TYPE_AS_OUTPUT_TYPE, "Query.any",
String message = getErrorMessage(CompilationDiagnostic.INVALID_USE_OF_RESERVED_TYPE_AS_OUTPUT_TYPE, "Query.'any",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@gimantha gimantha added the Skip GraalVM Check This will skip the GraalVM compatibility check label Nov 26, 2024
@gimantha gimantha closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip GraalVM Check This will skip the GraalVM compatibility check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants