changeset 43010:f3c984a6f1d9

8030175: java/rmi/registry/altSecurityManager/AltSecurityManager.java fails due to timeout Reviewed-by: rriggs
author mli
date Sun, 08 Jan 2017 23:15:57 -0800
parents 5af9f7aa93e5
children 36edf207e84c
files jdk/test/java/rmi/registry/altSecurityManager/AltSecurityManager.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {