added random sleep from 3 to 15 seconds to dummy if sleep is not set as arg
This commit is contained in:
parent
b87a699e00
commit
633556d97a
1 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
"""
|
||||
|
||||
import time
|
||||
import random
|
||||
|
||||
from logging import getLogger
|
||||
|
||||
|
|
@ -54,7 +55,7 @@ class DummyService(Service):
|
|||
|
||||
args = self.get_arguments()
|
||||
|
||||
self.sleep = 1
|
||||
self.sleep = random.randint(3, 15)
|
||||
if "sleep" in args:
|
||||
self.port = args["sleep"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue