Skip to content
Permalink
Browse files
make request a kwarg to cleanup_cluster
  • Loading branch information
driftx committed Aug 25, 2020
1 parent cefddf8 commit bc270afa85f11b06c52f7b8abe1d3ef1f6716751
Showing 1 changed file with 2 additions and 2 deletions.
@@ -347,9 +347,9 @@ def stop_active_log_watch(self):
"""
self.log_watch_thread.join(timeout=60)

def cleanup_cluster(self, request):
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and request.node.rep_call.failed):
if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and request and request.node.rep_call.failed):
self.cluster.stop(gently=self.dtest_config.enable_jacoco_code_coverage)
else:
# when recording coverage the jvm has to exit normally

0 comments on commit bc270af

Please sign in to comment.