From 3fefee73ec304dedcbddfcd0ec3027e167b9189a Mon Sep 17 00:00:00 2001 From: Olivier Bourgeois <3271352+bourgeoisor@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:21:38 -0400 Subject: [PATCH] Replace HttpUser with FastHttpUser (#2495) --- src/loadgenerator/locustfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loadgenerator/locustfile.py b/src/loadgenerator/locustfile.py index d91532a77bb..3b383543d6f 100755 --- a/src/loadgenerator/locustfile.py +++ b/src/loadgenerator/locustfile.py @@ -15,7 +15,7 @@ # limitations under the License. import random -from locust import HttpUser, TaskSet, between +from locust import FastHttpUser, TaskSet, between from faker import Faker import datetime fake = Faker() @@ -87,6 +87,6 @@ def on_start(self): viewCart: 3, checkout: 1} -class WebsiteUser(HttpUser): +class WebsiteUser(FastHttpUser): tasks = [UserBehavior] wait_time = between(1, 10)