File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
workshop/demos/agentic-ai-demo/load-generator Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def choose_request_text():
9595 r = random .random ()
9696 if r < 0.10 :
9797 return ("order" , build_insecure_order_request ())
98- if r < 0.35 :
98+ elif r < 0.35 :
9999 return ("order" , build_order_request ())
100100 elif r < 0.50 :
101101 return ("previous_orders" , build_previous_order_question ())
@@ -138,7 +138,7 @@ class InventoryRefresher(HttpUser):
138138
139139 @task
140140 def refresh_inventory (self ):
141- with self .client .post (
141+ with self .client .get (
142142 "/refresh_inventory" ,
143143 name = "Inventory Refresh: /refresh_inventory" , # Name for Locust UI
144144 catch_response = True ,
@@ -156,7 +156,7 @@ class ArchiveOrders(HttpUser):
156156
157157 @task
158158 def archive_orders (self ):
159- with self .client .post (
159+ with self .client .get (
160160 "/archive_orders" ,
161161 name = "Archive Orders: /archive_orders" , # Name for Locust UI
162162 catch_response = True ,
You can’t perform that action at this time.
0 commit comments