stuff
This commit is contained in:
@ -11,9 +11,9 @@ def testAPI(times=100, sleep=2):
|
||||
data={'code': 'pwd'}
|
||||
)
|
||||
if res.status_code != 200: errors += 1
|
||||
print(i, res.status_code, r.content)
|
||||
print(i, res.status_code, res.content)
|
||||
except:
|
||||
print('caught error')
|
||||
errors += 1
|
||||
time.sleep(sleep)
|
||||
print('errors ', errors, (errors/times)*100)
|
||||
print('errors ', errors, (errors/times)*100)
|
||||
|
Reference in New Issue
Block a user