aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/jdisc/http
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2023-08-29 15:06:39 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2023-08-30 14:10:39 +0200
commit0ccdbed4b8e90e3f07da11cf31f25f654b200216 (patch)
tree4a3051501899fccd7cdc653272ebe231f9170709 /container-core/src/test/java/com/yahoo/jdisc/http
parent08802d7adf9a80a0ead56fe5dcd7ddb89d14e6db (diff)
Mocking native methods no longer possible
Diffstat (limited to 'container-core/src/test/java/com/yahoo/jdisc/http')
-rw-r--r--container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ConnectionThrottlerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ConnectionThrottlerTest.java b/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ConnectionThrottlerTest.java
index a65231db2b7..cc73ab52aa1 100644
--- a/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ConnectionThrottlerTest.java
+++ b/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ConnectionThrottlerTest.java
@@ -24,7 +24,7 @@ public class ConnectionThrottlerTest {
@Test
void throttles_when_any_resource_check_exceeds_configured_threshold() {
- Runtime runtime = mock(Runtime.class);
+ var runtime = mock(ConnectionThrottler.Jvm.class);
when(runtime.maxMemory()).thenReturn(100l);
RateStatistic rateStatistic = new RateStatistic(1, TimeUnit.HOURS);
MockScheduler scheduler = new MockScheduler();