projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70461c3
)
test: Writable stream end() method doesn't take a callback
author
isaacs
<i@izs.me>
Fri, 5 Oct 2012 15:26:49 +0000
(08:26 -0700)
committer
isaacs
<i@izs.me>
Fri, 14 Dec 2012 18:52:26 +0000
(10:52 -0800)
test/simple/test-fs-write-stream-end.js
patch
|
blob
|
history
diff --git
a/test/simple/test-fs-write-stream-end.js
b/test/simple/test-fs-write-stream-end.js
index
6c0f29c
..
2a85ac3
100644
(file)
--- a/
test/simple/test-fs-write-stream-end.js
+++ b/
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;