Skip to content

Commit

Permalink
CompletionHandlerTest.testCompletion_Lambda fails randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
snjeza authored and rgrunber committed Jan 15, 2025
1 parent 722fb11 commit 31fb1b1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3461,7 +3461,12 @@ public void testCompletion_Lambda() throws Exception {
assertNotNull(lambda);
assertTrue(lambda.getTextEdit().getLeft().getNewText().matches("\\$\\{1:\\w+\\} -> \\$\\{0\\}"));

assertEquals("(Object arg0) ->", lambda.getLabel());
try {
assertEquals("(Object t) ->", lambda.getLabel());
} catch (ComparisonFailure e) {
// In case the JDK has no sources
assertEquals("(Object arg0) ->", lambda.getLabel());
}
assertNull(lambda.getLabelDetails().getDetail());
assertEquals(lambda.getLabelDetails().getDescription(), "void");
}
Expand Down

0 comments on commit 31fb1b1

Please sign in to comment.