From 0155b6d2b91a9199aab1abf6ef87ba88792d2c28 Mon Sep 17 00:00:00 2001 From: alexey-ivanov-es Date: Thu, 12 Dec 2024 15:47:27 +0000 Subject: [PATCH] Fix test --- .../elasticsearch/threadpool/ThreadPoolSerializationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/threadpool/ThreadPoolSerializationTests.java b/server/src/test/java/org/elasticsearch/threadpool/ThreadPoolSerializationTests.java index 29af090245c9e..2f360ea849663 100644 --- a/server/src/test/java/org/elasticsearch/threadpool/ThreadPoolSerializationTests.java +++ b/server/src/test/java/org/elasticsearch/threadpool/ThreadPoolSerializationTests.java @@ -37,7 +37,7 @@ public class ThreadPoolSerializationTests extends ESTestCase { @Before public void setUp() throws Exception { super.setUp(); - threadPoolType = randomFrom(ThreadPool.ThreadPoolType.values()); + threadPoolType = randomFrom(ThreadPool.ThreadPoolType.FIXED, ThreadPool.ThreadPoolType.SCALING); } public void testThatQueueSizeSerializationWorks() throws Exception {