mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-07 18:58:52 +00:00
add one last step to load plan and fix #40
This commit is contained in:
parent
308cc374cd
commit
e094ea5b21
@ -135,6 +135,8 @@ class Stairway(Composite):
|
||||
Const(minrps + i * increment, duration)
|
||||
for i in xrange(0, n_steps + 1)
|
||||
]
|
||||
if (n_steps + 1) * increment < maxrps:
|
||||
steps.append(Const(maxrps, duration))
|
||||
logging.info(steps)
|
||||
super(Stairway, self).__init__(steps)
|
||||
|
||||
@ -211,7 +213,6 @@ def create(rps_schedule):
|
||||
>>> take(10, create(['const(1, 1)']))
|
||||
[0]
|
||||
|
||||
>>> take(10, create(['step(100,950,100,1m)']))
|
||||
'''
|
||||
if len(rps_schedule) > 1:
|
||||
lp = Composite([StepFactory.produce(step_config)
|
||||
|
Loading…
Reference in New Issue
Block a user