Skip to content

Commit

Permalink
Fix race condition with repo name
Browse files Browse the repository at this point in the history
Two tests were using the same name for a path to a temporary repo.
This was causing the two tests to collide.
  • Loading branch information
natelust authored and Pim Schellart committed Mar 6, 2017
1 parent f095dfa commit 588ba11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/butlerProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class ButlerProxyTestCase(unittest.TestCase):
"""A test case for the data butler finding a Mapper in a root"""

def setUp(self):
if os.path.exists(os.path.join(ROOT, 'root/out')):
shutil.rmtree(os.path.join(ROOT, 'root/out'))
if os.path.exists(os.path.join(ROOT, 'root/proxyOut')):
shutil.rmtree(os.path.join(ROOT, 'root/proxyOut'))

self.butler = dafPersist.Butler(os.path.join(ROOT, "root"), outPath="out")
self.butler = dafPersist.Butler(os.path.join(ROOT, "root"), outPath="proxyOut")

def tearDown(self):
del self.butler
Expand Down

0 comments on commit 588ba11

Please sign in to comment.