Skip to content

Commit

Permalink
CLI: Fix test_cli_run on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 26, 2024
1 parent 09dbf3b commit 71ce339
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ def test_cli_run(capfd):
# Invoke `responder run`.
# Start a Responder service instance in the background, using its CLI.
# Make it terminate itself after serving one HTTP request.
server = ResponderServer(
target="examples/helloworld.py", port=random_port(), limit_max_requests=1
)
target = Path("examples") / "helloworld.py"
server = ResponderServer(target=str(target), port=random_port(), limit_max_requests=1)
try:
server.start()
wait_server(server.port)
Expand Down

0 comments on commit 71ce339

Please sign in to comment.