stuff
This commit is contained in:
1 parent
2a21be1825
commit
b808d23965
1 file changed
+2
-2
+2
-2
@@ -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