This commit is contained in:
2016-07-20 15:36:07 -04:00
parent f525c4d98f
commit ec565c2803
5 changed files with 135 additions and 65 deletions

View File

@@ -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)