Skip to content

Commit 782bbca

Browse files
author
Viktor Klang
committed
8358633: Test ThreadPoolExecutorTest::testTimedInvokeAnyNullTimeUnit is broken by JDK-8347491
Reviewed-by: alanb
1 parent 6cdfd36 commit 782bbca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jdk/java/util/concurrent/tck/ThreadPoolExecutorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ public void testTimedInvokeAnyNullTimeUnit() throws Exception {
17271727
e.invokeAny(l, randomTimeout(), null);
17281728
shouldThrow();
17291729
} catch (NullPointerException success) {
1730-
assertEquals("Cannot invoke \"java.util.concurrent.TimeUnit.toNanos(long)\" because \"unit\" is null", success.getMessage());
1730+
// Do not check the message, as ThreadPoolExecutor does not override invokeAny
17311731
}
17321732
}
17331733
}

0 commit comments

Comments
 (0)