Skip to content

Commit

Permalink
fix: added timeout to test utility request
Browse files Browse the repository at this point in the history
  • Loading branch information
ollibowers committed Jul 26, 2024
1 parent 57eac01 commit c14956b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/server/tests/user/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def clear():
setup_redis_sessionsdb()

def get_token():
return requests.post('http://127.0.0.1:8000/auth/guest_login').json()["session_token"]
return requests.post('http://127.0.0.1:8000/auth/guest_login', timeout=5000).json()["session_token"]

def get_token_headers(token: str):
return {"Authorization": f"Bearer {token}"}

0 comments on commit c14956b

Please sign in to comment.