stuff
This commit is contained in:
parent
29ad409649
commit
00bca4ff34
@ -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.'});
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user