 
 # 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}"


    describe "Session Start", ->
        it "stores a session start", (done) ->
            analytics._log START, (err) ->
                expect(err).to.be.null
                done()
