From 8804b7ae6b19169ec419ab7945e611edc49af73e Mon Sep 17 00:00:00 2001 From: Zhonghao Zhao Date: Mon, 16 Dec 2024 12:47:21 -0800 Subject: [PATCH] Fix contract test. --- .../appsignals/test/base/JMXMetricsContractTestBase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/base/JMXMetricsContractTestBase.java b/appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/base/JMXMetricsContractTestBase.java index 7df02e31c4..fb4c65218a 100644 --- a/appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/base/JMXMetricsContractTestBase.java +++ b/appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/base/JMXMetricsContractTestBase.java @@ -85,6 +85,7 @@ protected long getThreshold(String metricName) { // https://docs.oracle.com/en/java/javase/17/docs/api/java.management/java/lang/management/MemoryUsage.html#getMax() case JMXMetricsConstants.TOMCAT_THREADS: threshold = -3; + break; case JMXMetricsConstants.JVM_HEAP_MAX: case JMXMetricsConstants.JVM_NON_HEAP_MAX: case JMXMetricsConstants.JVM_POOL_MAX: