Skip to content

Commit

Permalink
Remove unused flag
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Mar 26, 2024
1 parent 2f174db commit e741e63
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/new_tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# Flags for testing callbacks
enable_triggered = False
disable_triggered = False
node_close_triggered = False
snapshot_triggered = False

# Cluster objects returned from callbacks
Expand All @@ -31,8 +30,7 @@ def disable(cluster: Cluster):
cluster_from_disable_listener = cluster

def node_close(node: Node):
global node_close_triggered
node_close_triggered = True
pass

def snapshot(cluster: Cluster):
global snapshot_triggered
Expand All @@ -50,11 +48,9 @@ def setup(self, as_connection, request):
# Clear results from previous tests
global enable_triggered
global disable_triggered
global node_close_triggered
global snapshot_triggered
enable_triggered = False
disable_triggered = False
node_close_triggered = False
snapshot_triggered = False

global cluster_from_disable_listener
Expand Down

0 comments on commit e741e63

Please sign in to comment.