Skip to content
Permalink
Browse files
CURATOR-567 - At this point, TestCleanState is so flakey we should ju…
…st turn it off for now. It's not serving much purpose anyway.
  • Loading branch information
randgalt committed Apr 19, 2020
1 parent 1c56fc6 commit 4fb8f2cf1ff476dffa38eaba7fff927e528ee212
Showing 2 changed files with 4 additions and 1 deletion.
@@ -26,6 +26,7 @@
public static final String PROPERTY_LOG_ONLY_FIRST_CONNECTION_ISSUE_AS_ERROR_LEVEL = "curator-log-only-first-connection-issue-as-error-level";
public static final String PROPERTY_REMOVE_WATCHERS_IN_FOREGROUND = "curator-remove-watchers-in-foreground";
public static final String PROPERTY_VALIDATE_NAMESPACE_WATCHER_MAP_EMPTY = "curator-validate-namespace-watcher-map-empty";
public static final String PROPERTY_VALIDATE_NO_REMAINING_WATCHERS = "curator-validate-no-remaining-watchers";


private DebugUtils()
@@ -27,9 +27,11 @@

public class TestCleanState
{
private static final boolean IS_ENABLED = Boolean.getBoolean("PROPERTY_VALIDATE_NO_REMAINING_WATCHERS");

public static void closeAndTestClean(CuratorFramework client)
{
if ( client == null )
if ( (client == null) || !IS_ENABLED )
{
return;
}

0 comments on commit 4fb8f2c

Please sign in to comment.