This commit is contained in:
William Mantly 2016-05-30 23:21:28 -04:00
parent 29ad409649
commit 00bca4ff34
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ var run = function(req, res, runner, count){
}; };
console.log('run', runner); console.log('run', runner);
if(!runner || count > 3){ if(!runner){
console.log('no runner'); console.log('no runner');
res.status(503); res.status(503);
return res.json({error: 'No runners, try again soon.'}); return res.json({error: 'No runners, try again soon.'});

View File

@ -11,7 +11,7 @@ def testAPI(times=100, sleep=2):
data={'code': 'pwd'} data={'code': 'pwd'}
) )
if res.status_code != 200: errors += 1 if res.status_code != 200: errors += 1
print(i, res.status_code) print(i, res.status_code, r.content)
except: except:
print('caught error') print('caught error')
errors += 1 errors += 1