jdk/test/java/rmi/testlibrary/ActivationLibrary.java
changeset 22085 752c27397429
parent 13256 5886d7607acd
child 23025 ee5c4f07f86c
--- a/jdk/test/java/rmi/testlibrary/ActivationLibrary.java	Fri Dec 13 18:08:20 2013 -0800
+++ b/jdk/test/java/rmi/testlibrary/ActivationLibrary.java	Fri Dec 20 15:10:11 2013 -0800
@@ -66,7 +66,8 @@
         // We do as much as 50 deactivation trials, each separated by
         // at least 100 milliseconds sleep time (max sleep time of 5 secs).
         final long deactivateSleepTime = 100;
-        for (int i = 0; i < 50; i ++) {
+        long stopTime = System.currentTimeMillis() + deactivateSleepTime * 50;
+        while (System.currentTimeMillis() < stopTime) {
             try {
                 if (Activatable.inactive(id) == true) {
                     mesg("inactive successful");