Browse Source

shut up travis

jomo 10 years ago
parent
commit
c54e3020e9
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .travis.yml
  2. 1 1
      lib/server.js

+ 1 - 0
.travis.yml

@@ -10,6 +10,7 @@ notifications:
     channels:
     channels:
       - irc.esper.net#crafatar
       - irc.esper.net#crafatar
     skip_join: true
     skip_join: true
+env: TRAVIS=true
 services:
 services:
   - redis-server
   - redis-server
 cache:
 cache:

+ 1 - 1
lib/server.js

@@ -68,7 +68,7 @@ function requestHandler(req, res) {
   logging.log(req.id, req.method, req.url.href);
   logging.log(req.id, req.method, req.url.href);
 
 
   toobusy.maxLag(200);
   toobusy.maxLag(200);
-  if (toobusy()) {
+  if (toobusy() && !process.env.TRAVIS) {
     res.writeHead(503, {
     res.writeHead(503, {
       "Content-Type": "text/plain"
       "Content-Type": "text/plain"
     });
     });