8344967: Some tests in TestFill do not use the test parameter
Reviewed-by: jvernee
This commit is contained in:
parent
81c44e5eb4
commit
103338534f
@ -87,7 +87,7 @@ final class TestFill {
|
|||||||
@MethodSource("sizes")
|
@MethodSource("sizes")
|
||||||
void testReadOnly(int len) {
|
void testReadOnly(int len) {
|
||||||
try (var arena = Arena.ofConfined()) {
|
try (var arena = Arena.ofConfined()) {
|
||||||
var segment = arena.allocate(10).asReadOnly();
|
var segment = arena.allocate(len).asReadOnly();
|
||||||
assertThrows(IllegalArgumentException.class, () -> segment.fill(VALUE));
|
assertThrows(IllegalArgumentException.class, () -> segment.fill(VALUE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,7 +96,7 @@ final class TestFill {
|
|||||||
@MethodSource("sizes")
|
@MethodSource("sizes")
|
||||||
void testConfinement(int len) {
|
void testConfinement(int len) {
|
||||||
try (var arena = Arena.ofConfined()) {
|
try (var arena = Arena.ofConfined()) {
|
||||||
var segment = arena.allocate(10);
|
var segment = arena.allocate(len);
|
||||||
AtomicReference<RuntimeException> ex = new AtomicReference<>();
|
AtomicReference<RuntimeException> ex = new AtomicReference<>();
|
||||||
CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
|
CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user