You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2015/10/11 17:45:43 UTC
curator git commit: Don't fail on unexpected event. It's not actually
a failure
Repository: curator
Updated Branches:
refs/heads/CURATOR-3.0 a0cb3fa7f -> b7cfbb64a
Don't fail on unexpected event. It's not actually a failure
Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/b7cfbb64
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/b7cfbb64
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/b7cfbb64
Branch: refs/heads/CURATOR-3.0
Commit: b7cfbb64a10526a612f87a00f62e32d08b5da411
Parents: a0cb3fa
Author: randgalt <ra...@apache.org>
Authored: Sun Oct 11 10:45:39 2015 -0500
Committer: randgalt <ra...@apache.org>
Committed: Sun Oct 11 10:45:39 2015 -0500
----------------------------------------------------------------------
.../framework/recipes/nodes/TestPersistentEphemeralNode.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/curator/blob/b7cfbb64/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
index fe2dd93..7b43dca 100644
--- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
+++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
@@ -40,6 +40,8 @@ import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.Watcher.Event.EventType;
import org.apache.zookeeper.data.ACL;
import org.apache.zookeeper.data.Stat;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
@@ -56,6 +58,7 @@ import static org.testng.Assert.*;
public class TestPersistentEphemeralNode extends BaseClassForTests
{
+ private static final Logger log = LoggerFactory.getLogger(TestPersistentEphemeralNode.class);
private static final String DIR = "/test";
private static final String PATH = ZKPaths.makePath(DIR, "/foo");
@@ -705,7 +708,7 @@ public class TestPersistentEphemeralNode extends BaseClassForTests
}
else if ( type != EventType.None )
{
- Assert.fail("Unexpected watcher event: " + event);
+ log.warn("Unexpected watcher event: " + event);
}
}