Skip to content
Browse files

Clean up after test

  • Loading branch information...
1 parent 48d9538 commit f0d42e5837714821de1c98bc934a68126ea17f36 @carlos8f committed Jul 21, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/basic.js
View
3 test/basic.js
@@ -6,6 +6,7 @@ var accesslog = require('../')
, baseUrl = 'http://localhost:' + port
, tmpLog = '/tmp/' + require('idgen')() + '.log'
, exec = require('child_process').exec
+ , fs = require('fs')
;
describe('basic test', function() {
@@ -20,6 +21,8 @@ describe('basic test', function() {
});
}).listen(port, done);
});
+ after(fs.unlink.bind(null, tmpLog));
+
it('performs a request', function(done) {
request({url: baseUrl + '/test/url', json: true}, function(err, res, data) {
assert.equal(res.statusCode, 200);

0 comments on commit f0d42e5

Please sign in to comment.
Something went wrong with that request. Please try again.