diff options
Diffstat (limited to 'tools/node_modules/expresso/test/earlyexit/forever.test.js')
-rw-r--r-- | tools/node_modules/expresso/test/earlyexit/forever.test.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/node_modules/expresso/test/earlyexit/forever.test.js b/tools/node_modules/expresso/test/earlyexit/forever.test.js new file mode 100644 index 0000000..c7c6df5 --- /dev/null +++ b/tools/node_modules/expresso/test/earlyexit/forever.test.js @@ -0,0 +1,8 @@ +var http = require('http'); +var assert = require('assert'); +var server = http.createServer(function(req, res) { /* Never send a response */ }); + +exports['assert.response'] = function() { + // This will keep running for a while because the server never returns. + assert.response(server, { url: '/' }, { status: 200 }); +}; |