def verify_session(wait_time = 2)
      logger.info(" - Wait until Consul session #{id} exists")
      wait_time.times do
        exists = session_exist?
        raise CreateSessionError, 'Error creating session' unless exists
        sleep 1
      end
      logger.info(" - Found Consul session #{id}")
    rescue CreateSessionError
      init
    end
def verify_session(wait_time = 2)
      logger.info(" - Wait until Consul session #{id} exists")
      wait_time.times do
        exists = session_exist?
        raise CreateSessionError, 'Error creating session' unless exists
        sleep 1
      end
      logger.info(" - Found Consul session #{id}")
    rescue CreateSessionError
      init
    end
Verify wheather the session exists after a period of time