diff --git a/.travis.yml b/.travis.yml index ae7c388..3aa18fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ notifications: channels: - irc.esper.net#crafatar skip_join: true +env: TRAVIS=true services: - redis-server cache: diff --git a/lib/server.js b/lib/server.js index c5ba91c..af13bec 100644 --- a/lib/server.js +++ b/lib/server.js @@ -68,7 +68,7 @@ function requestHandler(req, res) { logging.log(req.id, req.method, req.url.href); toobusy.maxLag(200); - if (toobusy()) { + if (toobusy() && !process.env.TRAVIS) { res.writeHead(503, { "Content-Type": "text/plain" });