Подтвердить трек 2 реальными сбоями, нагрузкой и отчётом
This commit is contained in:
@@ -51,7 +51,7 @@ def main(args):
|
||||
c = Client(args.base_url)
|
||||
begin = time.monotonic()
|
||||
att = c.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=load.png', 202,
|
||||
raw=raw, actor=alice, headers={'Content-Type': 'image/png'})['json']
|
||||
raw=raw, actor=alice, headers={'Content-Type': 'image/png'}, schema='Attachment')['json']
|
||||
accepted = time.monotonic()
|
||||
ready = c.wait_ready(alice, att)
|
||||
check(len(ready['variants']) == 3 and ready['sha256'] == hashlib.sha256(raw).hexdigest(), 'bad load result')
|
||||
|
||||
Reference in New Issue
Block a user