geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hiteshkhame...@apache.org
Subject [34/50] [abbrv] geode git commit: GEODE-1930: fix exception messages in DUnitLauncher
Date Tue, 14 Feb 2017 19:32:07 GMT
GEODE-1930: fix exception messages in DUnitLauncher


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/ca9cfd41
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/ca9cfd41
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/ca9cfd41

Branch: refs/heads/master
Commit: ca9cfd4132631c4d47710f1af8768f4755f0143b
Parents: 9ff51ea
Author: Kirk Lund <klund@apache.org>
Authored: Wed Jan 25 15:52:15 2017 -0800
Committer: Kirk Lund <klund@apache.org>
Committed: Thu Jan 26 12:20:40 2017 -0800

----------------------------------------------------------------------
 .../apache/geode/test/dunit/standalone/DUnitLauncher.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/ca9cfd41/geode-core/src/test/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
b/geode-core/src/test/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
index 92a7c46..b35270e 100644
--- a/geode-core/src/test/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
+++ b/geode-core/src/test/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
@@ -141,7 +141,7 @@ public class DUnitLauncher {
       try {
         launch();
       } catch (Exception e) {
-        throw new RuntimeException("Unable to launch dunit VMS", e);
+        throw new RuntimeException("Unable to launch dunit VMs", e);
       }
     }
 
@@ -217,7 +217,7 @@ public class DUnitLauncher {
 
     // wait for the VM to start up
     if (!processManager.waitForVMs(STARTUP_TIMEOUT)) {
-      throw new RuntimeException("VMs did not start up within 30 seconds");
+      throw new RuntimeException(STARTUP_TIMEOUT_MESSAGE);
     }
 
     locatorPort = startLocator(registry);
@@ -231,7 +231,7 @@ public class DUnitLauncher {
 
     // wait for the VMS to start up
     if (!processManager.waitForVMs(STARTUP_TIMEOUT)) {
-      throw new RuntimeException("VMs did not start up within 30 seconds");
+      throw new RuntimeException(STARTUP_TIMEOUT_MESSAGE);
     }
 
     // populate the Host class with our stubs. The tests use this host class
@@ -437,7 +437,7 @@ public class DUnitLauncher {
 
       try {
         if (!processManager.waitForVMs(STARTUP_TIMEOUT)) {
-          throw new RuntimeException("VMs did not start up with 30 seconds");
+          throw new RuntimeException(STARTUP_TIMEOUT_MESSAGE);
         }
         RemoteDUnitVMIF remote =
             (RemoteDUnitVMIF) registry.lookup(VM.getVMName(VersionManager.CURRENT_VERSION,
pid));


Mime
View raw message