Skip to content

Commit

Permalink
Update inert
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Nov 27, 2014
1 parent aae2863 commit 5f444db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
4 changes: 2 additions & 2 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"h2o2": "4.0.0-rc1",
"heavy": "2.x.x",
"hoek": "^2.10.x",
"inert": "2.0.0-rc2",
"inert": "2.0.0-rc3",
"iron": "2.x.x",
"items": "1.x.x",
"joi": "^4.8.x",
Expand Down
21 changes: 0 additions & 21 deletions test/transmit.js
Expand Up @@ -1074,27 +1074,6 @@ describe('transmission', function () {
});
});

it('returns error when file is removed before stream is opened', function (done) {

var filename = Hoek.uniqueFilename(Os.tmpDir());
Fs.writeFileSync(filename, 'data');

var server = new Hapi.Server();
server.connection();
server.route({ method: 'GET', path: '/', handler: { file: filename } });
server.ext('onPreResponse', function (request, reply) {

Fs.unlinkSync(filename);
return reply.continue();
});

server.inject('/', function (res) {

expect(res.statusCode).to.equal(500);
done();
});
});

it('does not open file stream on 304', function (done) {

var server = new Hapi.Server();
Expand Down

0 comments on commit 5f444db

Please sign in to comment.