diff options
Diffstat (limited to 'test/node')
-rwxr-xr-x | test/node/write_callback/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/node/write_callback/app.js b/test/node/write_callback/app.js index 9d4bc1c5..3a9e51e8 100755 --- a/test/node/write_callback/app.js +++ b/test/node/write_callback/app.js @@ -1,10 +1,13 @@ #!/usr/bin/env node +var fs = require('fs'); + require('unit-http').createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); - var a = 'blah'; + var a = 'world'; res.write('hello', 'utf8', function() { - a = 'world'; + a = 'blah'; + fs.appendFile('callback', '', function() {}); }); res.end(a); }).listen(7080); |