Skip to content

Commit 06fc62f

Browse files
Fix UpdateThreadPoolSettingsTests (#73199)
Small and obvious oversight from #73172
1 parent 6a038b2 commit 06fc62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/threadpool/UpdateThreadPoolSettingsTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void testScalingExecutorType() throws InterruptedException {
121121
final int expectedMinimum = "generic".equals(threadPoolName) ? 4 : 1;
122122
assertThat(info(threadPool, threadPoolName).getMin(), equalTo(expectedMinimum));
123123
assertThat(info(threadPool, threadPoolName).getMax(), equalTo(10));
124-
final long expectedKeepAlive = "generic".equals(threadPoolName) ? 30 : 300;
124+
final long expectedKeepAlive = "generic".equals(threadPoolName) || Names.SNAPSHOT_META.equals(threadPoolName) ? 30 : 300;
125125
assertThat(info(threadPool, threadPoolName).getKeepAlive().seconds(), equalTo(expectedKeepAlive));
126126
assertEquals(info(threadPool, threadPoolName).getThreadPoolType(), ThreadPool.ThreadPoolType.SCALING);
127127
assertThat(threadPool.executor(threadPoolName), instanceOf(EsThreadPoolExecutor.class));

0 commit comments

Comments
 (0)