Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Dec 18, 2021
1 parent 074e055 commit 213cc86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

@pytest.fixture
def session():
subprocess.call(["freeport", "5000"])
subprocess.call(["yes | freeport 5000"], shell=True)
os.environ["ROBYN_URL"] = "127.0.0.1"
current_file_path = pathlib.Path(__file__).parent.resolve()
base_routes = os.path.join(current_file_path, "./base_routes.py")
process = subprocess.Popen(["python3", base_routes])
time.sleep(1)
time.sleep(5)
yield
process.terminate()
del os.environ["ROBYN_URL"]
Expand Down

0 comments on commit 213cc86

Please sign in to comment.