Skip to content

Commit

Permalink
Add missing s3url on teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Apr 30, 2024
1 parent 051c69c commit 32449fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ class NWBLindiFileCreateLocalReferenceFileSystemBenchmark(BaseBenchmark):
def setup(self, s3_url: str):
"""Clear the LINDI JSON if it still exists"""
self.lindi_file = os.path.basename(s3_url) + ".lindi.json"
self.teardown()
self.teardown(s3_url=s3_url)

def teardown(self):
def teardown(self, s3_url: str):
"""Clear the LINDI JSON if it still exists"""
if os.path.exists(self.lindi_file):
os.remove(self.lindi_file)
Expand Down

0 comments on commit 32449fa

Please sign in to comment.