Skip to content

Commit

Permalink
re-add wait_time in examples that would otherwise spam-print
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Nov 16, 2020
1 parent b9e2d54 commit 81d9707
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/writing-a-locustfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ The easiest way to add a task for a User is by using the :py:meth:`task <locust.

.. code-block:: python
from locust import User, task
from locust import User, task, constant
class MyUser(User):
wait_time = constant(1)
@task
def my_task(self):
print("User instance (%r) executing my_task" % self)
Expand Down

0 comments on commit 81d9707

Please sign in to comment.