MCPcopy
hub / github.com/locustio/locust / TestUser

Class TestUser

locust/test/test_locust_class.py:451–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449 log = []
450
451 class TestUser(User):
452 wait_time = constant(0.01)
453
454 @task
455 def t(self):
456 log.append(0)
457 self.wait()
458 log.append(1)
459 raise StopUser()
460
461 l = TestUser(self.environment)
462 l.run()

Callers 4

test_locust_waitMethod · 0.70
test_locust_startMethod · 0.70

Calls 1

constantFunction · 0.90

Tested by 4

test_locust_waitMethod · 0.56
test_locust_startMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…