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

W-15702938 Added tests for AVRO and AVRO support in async2.6 #1075

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

franciscolosardo
Copy link

No description provided.

@franciscolosardo franciscolosardo requested a review from a team as a code owner October 4, 2024 14:32

import scala.concurrent.ExecutionContext

class Async26Test extends BasicCleanDiagnosticTest {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a more specific name like "Async26CleanDiagnosticTest`

import org.mulesoft.lsp.feature.diagnostic.DiagnosticSeverity


class AvroSupportTest extends BasicCleanDiagnosticTest {
Copy link
Member

Choose a reason for hiding this comment

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

maybe change name to AvroCleanDiagnosticTest?

server.shutdown()
assert(d.size == 2)
assert(d.head.diagnostics.length == 1)
val errorMessage = d.head.diagnostics.head.message.toLowerCase()
Copy link
Member

Choose a reason for hiding this comment

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

maybe instead of diagnostics.head use a find or collect, so we do not rely on the order of the files sent (check by uri)

}


test("avro containing inline avro") {
Copy link
Member

Choose a reason for hiding this comment

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

not sure what inline avro inside an avro means, maybe just leave this as "valid complex avro" or something?

}
}

test("Avro with no errors") {
Copy link
Member

Choose a reason for hiding this comment

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

maybe "valid avro with unions"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants