Skip to content

Commit

Permalink
Tweak unit test case testConcurrentCallers
Browse files Browse the repository at this point in the history
  • Loading branch information
patsonluk committed Oct 10, 2024
1 parent 8342328 commit 35baa62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,12 @@ public void testConcurrentCallers() throws Exception {
"# TYPE sub_shard_requests_get counter\n" +
"sub_shard_requests_get 1\n";

final int THREAD_COUNT = 10;
final int THREAD_COUNT = 100;
ExecutorService executorService = ExecutorUtil.newMDCAwareFixedThreadPool(
THREAD_COUNT, new SolrNamedThreadFactory("test-concurrent-metric-callers"));

List<Future<?>> futures = new ArrayList<>();
for (int i = 0 ; i < 10; i ++) {
for (int i = 0 ; i < THREAD_COUNT; i ++) {
futures.add(executorService.submit(() -> {
PrometheusMetricsServlet.ResultContext resultContext = new PrometheusMetricsServlet.ResultContext(new ArrayList<>());
assertMetricsApiCaller(
Expand Down

0 comments on commit 35baa62

Please sign in to comment.