var Http = require('http');
var Os = require('os');
var Fs = require('fs');

var Hapi = require('hapi');
<<<<<<< Updated upstream
var EventEmitter = require('events').EventEmitter;
=======
var Hoek = require('hoek');
>>>>>>> Stashed changes
var GoodFile = require('../');

var server = new Hapi.Server('127.0.0.1', 31337);

var reporter = new GoodFile(Hoek.uniqueFilename(Os.tmpDir()), { request: '*' });

server.start(function() {

    reporter.start(server, function(err) {

        if (err) {
            console.error(err);
            process.exit(1);
        }

        console.info('Server started at ' + server.info.uri);
        console.info('*** Starting triage ***');

        for (var i = 0; i <= 100; ++i) {
            Http.get(server.info.uri);
        }
        console.info('Done');
        console.info('Check %s for file results', reporter._writeStream.path);
    });
});

server.route({
    method: 'GET',
    path: '/',
    handler: function (request, reply) {

        server.emit('report', 'request', {
            event: 'request',
            timestamp: Date.now(),
            path: request.path,
            id: request.id
        });

<<<<<<< Updated upstream
        reply(200);
=======
        reply().code(200);
>>>>>>> Stashed changes
    }
});

var Http = require('http');
var Hapi = require('hapi');
var EventEmitter = require('events').EventEmitter;
var GoodFile = require('../');

var server = new Hapi.Server('127.0.0.1', 31337);

var reporter = new GoodFile('./test/fixtures/example', { request: '*' });

server.start(function() {

    reporter.start(server, function(err) {

        if (err) {
            console.error(err);
            process.exit(1);
        }

        console.info('Server started at ' + server.info.uri);
        console.info('*** Starting triage ***');

        for (var i = 0; i <= 100; ++i) {
            Http.get(server.info.uri);
        }
        console.info('Done');
    });
});

server.route({
    method: 'GET',
    path: '/',
    handler: function (request, reply) {

        server.emit('report', 'request', {
            event: 'request',
            timestamp: Date.now(),
            path: request.path,
            id: request.id
        });

        reply(200);
    }
});
--- 
+++ 
@@ -1,18 +1,11 @@
 var Http = require('http');
-var Os = require('os');
-var Fs = require('fs');
-
 var Hapi = require('hapi');
-<<<<<<< Updated upstream
 var EventEmitter = require('events').EventEmitter;
-=======
-var Hoek = require('hoek');
->>>>>>> Stashed changes
 var GoodFile = require('../');
 
 var server = new Hapi.Server('127.0.0.1', 31337);
 
-var reporter = new GoodFile(Hoek.uniqueFilename(Os.tmpDir()), { request: '*' });
+var reporter = new GoodFile('./test/fixtures/example', { request: '*' });
 
 server.start(function() {
 
@@ -30,7 +23,6 @@
             Http.get(server.info.uri);
         }
         console.info('Done');
-        console.info('Check %s for file results', reporter._writeStream.path);
     });
 });
 
@@ -46,10 +38,6 @@
             id: request.id
         });
 
-<<<<<<< Updated upstream
         reply(200);
-=======
-        reply().code(200);
->>>>>>> Stashed changes
     }
 });
Update example to it works again.
