diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/AsyncOperatorTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/AsyncOperatorTests.java index a4370face45ad..0d3750f6fd580 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/AsyncOperatorTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/AsyncOperatorTests.java @@ -300,7 +300,7 @@ protected void doClose() { } }; - asyncOperator.addInput(new Page(blockFactory.newConstantIntBlockWith(randomInt(), between(1, 10)))); + asyncOperator.addInput(new Page(BlockFactory.getNonBreakingInstance().newConstantIntBlockWith(randomInt(), between(1, 10)))); asyncOperator.finish(); try { barrier.await(10, TimeUnit.SECONDS);