From 2e197e2b98823e0f332c1c76e410379458c84242 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Wed, 30 Oct 2013 20:37:01 -0700 Subject: [PATCH] be less picky with ENOENT errors in tests closes #1580 --- test/res.sendfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/res.sendfile.js b/test/res.sendfile.js index 5193770dbe..30c2ebe00d 100644 --- a/test/res.sendfile.js +++ b/test/res.sendfile.js @@ -51,7 +51,7 @@ describe('res', function(){ .get('/') .end(function(err, res){ assert(1 == calls, 'called too many times'); - res.text.should.equal("ENOENT, stat 'test/fixtures/nope.html'"); + res.text.should.startWith("ENOENT, stat"); res.statusCode.should.equal(200); done(); });