geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jensde...@apache.org
Subject [geode] branch develop updated: GEODE-5588: MemberStarterRule.withHttpService fails in some situations (#2336)
Date Wed, 15 Aug 2018 23:23:18 GMT
This is an automated email from the ASF dual-hosted git repository.

jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new ac56a49  GEODE-5588: MemberStarterRule.withHttpService fails in some situations (#2336)
ac56a49 is described below

commit ac56a494f6908a0d8e28164a1dbc4ef25759e935
Author: Jens Deppe <jdeppe@pivotal.io>
AuthorDate: Wed Aug 15 16:23:12 2018 -0700

    GEODE-5588: MemberStarterRule.withHttpService fails in some situations (#2336)
---
 .../main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-dunit/src/main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java
b/geode-dunit/src/main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java
index 9629119..d986d72 100644
--- a/geode-dunit/src/main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java
+++ b/geode-dunit/src/main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java
@@ -246,7 +246,7 @@ public abstract class MemberStarterRule<T> extends SerializableExternalResource
     properties.setProperty(HTTP_SERVICE_BIND_ADDRESS, "localhost");
     if (!useDefaultPort) {
       httpPort = AvailablePortHelper.getRandomAvailableTCPPort();
-      properties.putIfAbsent(HTTP_SERVICE_PORT, httpPort + "");
+      properties.put(HTTP_SERVICE_PORT, httpPort + "");
     } else {
       // indicate start http service but with default port
       // (different from Gemfire properties, 0 means do not start http service)


Mime
View raw message