You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/03/06 11:10:53 UTC
[camel] branch master updated: Camel-Zookeeper-master: Fixed CS
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new a5bb896 Camel-Zookeeper-master: Fixed CS
a5bb896 is described below
commit a5bb896cb6155617503ebe94d2347c058f776b0f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 6 11:51:30 2020 +0100
Camel-Zookeeper-master: Fixed CS
---
.../component/zookeepermaster/group/GroupTest.java | 27 +++++++++++-----------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/GroupTest.java b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/GroupTest.java
index 44d5561..c08286d 100644
--- a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/GroupTest.java
+++ b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/GroupTest.java
@@ -47,20 +47,7 @@ import static org.springframework.test.util.AssertionErrors.assertNotEquals;
public class GroupTest {
private static final Logger LOGGER = LoggerFactory.getLogger(GroupTest.class);
- private static String BEFORE_TMPDIR;
-
- @BeforeClass
- public static void before() {
- // workaround macos issue with docker/testcontainers expecting to use /tmp/ folder
- BEFORE_TMPDIR = System.setProperty("java.io.tmpdir", "/tmp/");
- }
-
- @AfterClass
- public static void after() {
- if (BEFORE_TMPDIR != null) {
- System.setProperty("java.io.tmpdir", BEFORE_TMPDIR);
- }
- }
+ private static String beforeTmpdir;
private GroupListener listener = new GroupListener<NodeState>() {
@Override
@@ -111,6 +98,18 @@ public class GroupTest {
return container;
}
+ @BeforeClass
+ public static void before() {
+ // workaround macos issue with docker/testcontainers expecting to use /tmp/ folder
+ beforeTmpdir = System.setProperty("java.io.tmpdir", "/tmp/");
+ }
+
+ @AfterClass
+ public static void after() {
+ if (beforeTmpdir != null) {
+ System.setProperty("java.io.tmpdir", beforeTmpdir);
+ }
+ }
@Test
public void testOrder() throws Exception {