From 36676b1de5afec964a7e6ad37dbaccad66bfd1d0 Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Wed, 10 Nov 2021 15:51:53 -0500 Subject: [PATCH] [ML] fixing failing test #80619 (#80626) (#80628) Periodically, the total length could randomly equal the definition length. This was a fence post test set up failure closes #80619 Co-authored-by: Elastic Machine --- .../ml/inference/persistence/TrainedModelProviderTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelProviderTests.java b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelProviderTests.java index aaaa6b5ec72f6..8797cdd8b46c3 100644 --- a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelProviderTests.java +++ b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelProviderTests.java @@ -198,7 +198,7 @@ public void testGetDefinitionFromDocsTruncated() { new BytesArray(randomByteArrayOfLength(10)), modelId, 0, - randomLongBetween(10, 100), + randomLongBetween(11, 100), 10, 1, randomBoolean()