Skip to content

Commit debf0ec

Browse files
committedNov 28, 2023
8313355: javax/management/remote/mandatory/notif/ListenerScaleTest.java failed with "Exception: Failed: ratio=792.2791601423487"
Reviewed-by: sspitsyn
1 parent 20aae3c commit debf0ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎test/jdk/javax/management/remote/mandatory/notif/ListenerScaleTest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -77,6 +77,7 @@ public class ListenerScaleTest {
7777
private static final int WARMUP_WITH_ONE_MBEAN = 1000;
7878
private static final int NOTIFS_TO_TIME = 100;
7979
private static final int EXTRA_MBEANS = 20000;
80+
private static final double RATIO_FAIL_VALUE = 2500.0;
8081

8182
private static final ObjectName testObjectName;
8283
static {
@@ -187,8 +188,9 @@ private static void test(MBeanServer mbs, JMXConnectorServer cs,
187188
long manyMBeansTime = timeNotif(mbs);
188189
System.out.println("Time with many MBeans: " + manyMBeansTime + "ns");
189190
double ratio = (double) manyMBeansTime / singleMBeanTime;
190-
if (ratio > 500.0)
191+
if (ratio > RATIO_FAIL_VALUE) {
191192
throw new Exception("Failed: ratio=" + ratio);
193+
}
192194
System.out.println("Test passed: ratio=" + ratio);
193195
}
194196
}

0 commit comments

Comments
 (0)
Please sign in to comment.