Skip to content

Commit 630889b

Browse files
authored
Remove extraneous test from Painless lambda tests (#38111)
This test has been awaiting a fix that isn't currently relevant because incoming lambda parameters are read-only. If this ever changes a new set of tests can be added that are up-to-date.
1 parent f181e17 commit 630889b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/lang-painless/src/test/java/org/elasticsearch/painless/LambdaTests.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ public void testCapturesAreReadOnly() {
144144
assertTrue(expected.getMessage().contains("is read-only"));
145145
}
146146

147-
@AwaitsFix(bugUrl = "def type tracking")
148-
public void testOnlyCapturesAreReadOnly() {
149-
assertEquals(4, exec("List l = new ArrayList(); l.add(1); l.add(1); "
150-
+ "return l.stream().mapToInt(x -> { x += 1; return x }).sum();"));
151-
}
152-
153147
/** Lambda parameters shouldn't be able to mask a variable already in scope */
154148
public void testNoParamMasking() {
155149
IllegalArgumentException expected = expectScriptThrows(IllegalArgumentException.class, () -> {

0 commit comments

Comments
 (0)