Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
chamil321 committed Apr 19, 2021
1 parent 71084d1 commit 9aa9ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
run: ./gradlew.bat build

ubuntu-build-without-native-tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ public void testListenerTypes() {
PackageCompilation compilation = currentPackage.getCompilation();
DiagnosticResult diagnosticResult = compilation.diagnosticResult();
Assert.assertEquals(diagnosticResult.diagnosticCount(), 6);
assertTrue(diagnosticResult, 3, "invalid resource parameter type: 'ballerina/http", HTTP_106);
diagnosticResult.diagnostics().stream().filter(err -> err.diagnosticInfo().code().contains(HTTP_106)).map(
err -> err.diagnosticInfo().messageFormat().contains(
"invalid resource parameter type: 'ballerina/http")).forEach(Assert::assertTrue);
}
}

0 comments on commit 9aa9ae6

Please sign in to comment.