Skip to content

Commit

Permalink
revert os platform change
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakf committed Feb 8, 2024
1 parent 603d5ae commit d46911b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,11 @@ def run():

@pytest.fixture(scope="class")
def setup_mock_server() -> None:
host_system = platform.system()
if host_system == "Darwin":
# import mock_server here to avoid cyclic import
import mock_server

server = Process(target=mock_server.app.run)
else:
server = Process(target=run)
# import mock_server here to avoid cyclic import
# import mock_server

# server = Process(target=mock_server.app.run)
server = Process(target=run)
server.start()
time.sleep(2)
yield
Expand Down

0 comments on commit d46911b

Please sign in to comment.