 
     describe "exit current leader", ->
       before (done) ->
-        this.timeout(15000)
+        this.timeout(if process.env.TRAVIS then 25000 else 15000)
         request.get "http://127.0.0.1:1240/v1/leader", {json: true}, (error, req, body) ->
           leaderBefore = body.leader
           request.post "http://127.0.0.1:1242/v1/exit/leader", {json: true}, (error, req, body) ->
-            Q.delay(10000).then ->
+            Q.delay(if process.env.TRAVIS then 25000 else 10000).then ->
               request.get "http://127.0.0.1:1241/v1/leader", {json: true}, (error, req, body) ->
                 leaderAfter1 = body.leader
                 request.get "http://127.0.0.1:1242/v1/leader", {json: true}, (error, req, body) ->

            expect(body.leader).equal(leaderAfter1)

  after (done) ->
    this.timeout(7500)
    mconn1.kill()
    mconn2.kill()
    mconn3.kill()
    Q.delay(5000).then ->
      deferred.resolve()
      done()

      MCONN_ZK_HOSTS: if process.env.ALIAS_PORT_2181_TCP_ADDR? then process.env.ALIAS_PORT_2181_TCP_ADDR + ":2181" else "127.0.0.1:2181"
      MCONN_ZK_PATH: "/mconn-dev"
    )
    Q.delay(if process.env.TRAVIS then 25000 else 10000)
    .then ->
      mconn2 = new Manager("bin/start.js",
        name: "MCONN_NODE_2"
