Skip to content
Permalink
Browse files
Merge branch 'CURATOR-567-remove-test-clean-state-where-flaky'
  • Loading branch information
randgalt committed Apr 19, 2020
2 parents 1d0c6f2 + 4fb8f2c commit 629486ff647deb66831831e1e13845d3b62d0a5b
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 629486f

Please sign in to comment.