 
 # started an hour ago
 start_time = Number(new Date) - 60*60*1000
+
+config = es_uri:"es://localhost:9200/stream-test", finalize_secs:-1
 
 START =
     type:           "session_start"


    before (done) ->
        # connect to the db
        _uri = URL.parse(nconf.get("analytics:es_uri"))

        es = new elasticsearch.Client
            host:       "http://#{_uri.hostname}:#{_uri.port||9200}"

        logger = new Logger {}

        it "starts up using config options", (done) ->
            analytics = new Analytics config:config, log:logger, (err) ->
                expect(err).to.be.null

                expect(analytics).to.be.instanceof(Analytics)
