done
This commit is contained in:
@@ -7,8 +7,9 @@ def testAPI(times=100, sleep=2):
|
||||
for i in range(times):
|
||||
try:
|
||||
res = r.post(
|
||||
'http://codeland.bytedev.co:2000/api/run',
|
||||
data={'code': 'pwd'}
|
||||
'http://127.0.0.1:2000/api/run',
|
||||
data={'code': 'pwd'},
|
||||
params={'once': True}
|
||||
)
|
||||
if res.status_code != 200: errors += 1
|
||||
print(i, res.status_code, res.content)
|
||||
|
||||
Reference in New Issue
Block a user