Skip to content

Commit

Permalink
fix confest
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Aug 6, 2023
1 parent 7ffd883 commit f6eda8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
settings.mint_derivation_path = "0/0/0/0"
settings.mint_private_key = "TEST_PRIVATE_KEY"

shutil.rmtree(settings.cashu_dir, ignore_errors=True)
Path(settings.cashu_dir).mkdir(parents=True, exist_ok=True)


class UvicornServer(multiprocessing.Process):
def __init__(self, config: Config):
Expand Down Expand Up @@ -74,8 +77,6 @@ def mint():
host=settings.mint_listen_host,
)

shutil.rmtree(settings.cashu_dir, ignore_errors=True)
Path(settings.cashu_dir).mkdir(parents=True, exist_ok=True)
server = UvicornServer(config=config)
server.start()
time.sleep(1)
Expand Down

0 comments on commit f6eda8c

Please sign in to comment.