             expect(body.leader).equal(leaderAfter1)
 
   after (done) ->
-    this.timeout(7500)
+    this.timeout(if process.env.TRAVIS then 10000 else 7500)
     mconn1.kill()
     mconn2.kill()
     mconn3.kill()
-    Q.delay(5000).then ->
+    Q.delay(if process.env.TRAVIS then 7500 else 5000).then ->
       deferred.resolve()
       done()

        MCONN_ZK_PATH: "/mconn-dev"
      )
      return Q.resolve()
    .delay(10000)
    .then -> done()

  describe "check first startup election", ->
    it "should return the same result for all three nodes", (done) ->
      this.timeout(5000)
      body1 = null
      body2 = null
      body3 = null

describe "Leader Election Tests", ->
  body = null
  before (done) ->
    this.timeout(if process.env.TRAVIS then 90000 else 30000)
    mconn1 = new Manager("bin/start.js",
      name: "MCONN_NODE_1"
      MCONN_HOST: "127.0.0.1"
