Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaosongzs committed Jun 14, 2024
1 parent 5fa520d commit 0458d2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,11 @@ void executableFile(TestInfo testInfo) throws IOException {
assertEquals(1, checks.size());
var check = checks.get("jcheck");
assertEquals(CheckStatus.FAILURE, check.status());
assertTrue(check.summary().orElseThrow().contains("Executable files are not allowed (file: executable.exe)"));
assertTrue(check.summary().orElseThrow().contains("Patch contains an executable file (file: executable.exe)"));

// Additional errors should be displayed in the body
assertTrue(pr.store().body().contains("## Error"));
assertTrue(pr.store().body().contains("Executable files are not allowed (file: executable.exe)"));
assertTrue(pr.store().body().contains("Patch contains an executable file (file: executable.exe)"));

// The PR should not yet be ready for review
assertFalse(pr.store().labelNames().contains("rfr"));
Expand Down

0 comments on commit 0458d2b

Please sign in to comment.