Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
aashikam committed Aug 21, 2023
1 parent 02b0610 commit faab7e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,13 @@ public void testInvalidService30() {
}

@Test(description = "NATS service with no service config or service name")
public void testInvalidService30() {
public void testInvalidService31() {
Package currentPackage = loadPackage("invalid_service_31");
PackageCompilation compilation = currentPackage.getCompilation();
DiagnosticResult diagnosticResult = compilation.diagnosticResult();
Assert.assertEquals(diagnosticResult.errors().size(), 1);
Diagnostic diagnostic = (Diagnostic) diagnosticResult.errors().toArray()[0];
assertDiagnostic(diagnostic, CompilationErrors.INVALID_SERVICE_ATTACH_POINT);
assertDiagnostic(diagnostic, CompilationErrors.NO_ANNOTATION);
}

private Package loadPackage(String path) {
Expand Down

0 comments on commit faab7e3

Please sign in to comment.