8030175: java/rmi/registry/altSecurityManager/AltSecurityManager.java fails due to timeout
authormli
Sun, 08 Jan 2017 23:15:57 -0800
changeset 43010 f3c984a6f1d9
parent 43009 5af9f7aa93e5
child 43011 36edf207e84c
8030175: java/rmi/registry/altSecurityManager/AltSecurityManager.java fails due to timeout Reviewed-by: rriggs
jdk/test/java/rmi/registry/altSecurityManager/AltSecurityManager.java
--- a/jdk/test/java/rmi/registry/altSecurityManager/AltSecurityManager.java	Fri Jan 06 02:03:47 2017 +0000
+++ b/jdk/test/java/rmi/registry/altSecurityManager/AltSecurityManager.java	Sun Jan 08 23:15:57 2017 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,8 @@
     static final String ACTIVATION = "sun.rmi.server.Activation";
 
     // children should exit in at least this time.
-    static long TIME_OUT = 15000;
+    private static final long TIME_OUT =
+            (long)(15000 * TestLibrary.getTimeoutFactor());
 
     public AltSecurityManager(int port) {
         if (port <= 0) {