Skip to content

Commit

Permalink
Use correct port in test_user_context.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed May 3, 2021
1 parent a19a14d commit df51814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/test/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def test_catch_response_default_fail(self):

def test_user_context(self):
class TestUser(HttpUser):
host = "http://localhost"
host = f"http://127.0.0.1:{self.port}"

def context(self):
return {"user": self.username}
Expand Down

0 comments on commit df51814

Please sign in to comment.