From df51814e49b0c9e8ff1b70ebb370fcd5c53af682 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 3 May 2021 21:15:51 +0200 Subject: [PATCH] Use correct port in test_user_context. --- locust/test/test_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/test/test_http.py b/locust/test/test_http.py index d2c2f2e83e..9b149740ed 100644 --- a/locust/test/test_http.py +++ b/locust/test/test_http.py @@ -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}