Reduce time delays
This commit is contained in:
parent
adda6a78f9
commit
029265fc46
|
@ -155,7 +155,7 @@ def play_live_item(rtc: object, payload: dict) -> None:
|
|||
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
|
||||
i = 0
|
||||
for _ in json.loads(ret.text):
|
||||
pl = {'max': 1, 'min': 2, 'delay': 1, 'name': 'controller_item_show', 'payload': {'id': i}}
|
||||
pl = {'max': 1, 'min': 2, 'delay': 0.2, 'name': 'controller_item_show', 'payload': {'id': i}}
|
||||
rtc.tasks.append(Task(rtc, pl))
|
||||
i += 1
|
||||
assert ret.status_code == 200, f'{ret.status_code} returned from show'
|
||||
|
@ -165,5 +165,4 @@ def controller_item_show(rtc: object, payload: dict) -> None:
|
|||
id = payload['id']
|
||||
print_text('Controller_item_show')
|
||||
ret = requests.post(rtc.base_url + 'controller/show', json=dict(id=int(id)))
|
||||
human_delay()
|
||||
assert ret.status_code == 204, ret.status_code
|
||||
|
|
Loading…
Reference in New Issue