You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by je...@apache.org on 2018/08/15 23:23:18 UTC

[geode] branch develop updated: GEODE-5588: MemberStarterRule.withHttpService fails in some situations (#2336)

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 <jd...@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)