From 45b4a863a4f82f386326feb665269219fd0e91dd Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Wed, 10 Nov 2021 14:02:37 -0500 Subject: [PATCH] [ML] fixing failing test #80619 (#80626) Periodically, the total length could randomly equal the definition length. This was a fence post test set up failure closes #80619 --- .../ml/inference/persistence/TrainedModelProviderTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 b2fe95dabb22f..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 @@ -188,7 +188,6 @@ public void testChunkDefinitionWithSize() { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/80619") public void testGetDefinitionFromDocsTruncated() { String modelId = randomAlphaOfLength(10); Exception ex = expectThrows( @@ -199,7 +198,7 @@ public void testGetDefinitionFromDocsTruncated() { new BytesArray(randomByteArrayOfLength(10)), modelId, 0, - randomLongBetween(10, 100), + randomLongBetween(11, 100), 10, 1, randomBoolean()