Skip to content

Commit d6e9573

Browse files
Try to enable hug_server to be able to run and be accessible from within the context of travis ci
1 parent a30f769 commit d6e9573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_full_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def post(body, response):
4040
def test_hug_post(tmp_path):
4141
hug_test_file = (tmp_path / "hug_postable.py")
4242
hug_test_file.write_text(TEST_HUG_API)
43-
hug_server = Popen(['hug', '-f', str(hug_test_file)])
44-
time.sleep(1)
45-
requests.post('http://localhost:8000/test', {'data': 'here'})
43+
hug_server = Popen(['hug', '-f', str(hug_test_file), '-p', '3000'])
44+
time.sleep(5)
45+
requests.post('http://127.0.0.1:3000/test', {'data': 'here'})
4646
hug_server.kill()

0 commit comments

Comments
 (0)