Browse Source

test: Writable stream end() method doesn't take a callback

v0.9.4-release
isaacs 12 years ago
parent
commit
3d3a0b3046
  1. 3
      test/simple/test-fs-write-stream-end.js

3
test/simple/test-fs-write-stream-end.js

@ -31,7 +31,8 @@ var writeEndOk = false;
var file = path.join(common.tmpDir, 'write-end-test.txt');
var stream = fs.createWriteStream(file);
stream.end('a\n', 'utf8', function() {
stream.end('a\n', 'utf8');
stream.on('close', function() {
var content = fs.readFileSync(file, 'utf8');
assert.equal(content, 'a\n');
writeEndOk = true;

Loading…
Cancel
Save