summaryrefslogtreecommitdiff
path: root/test/simple
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-26 15:20:26 -0700
committerisaacs <i@izs.me>2012-06-26 15:20:26 -0700
commit21aa0df8b2f4fb8715943c4b0bdc944554be43e8 (patch)
treed6ce8d9477f189972856693661add6d3a8edae67 /test/simple
parent1e50282ae8672ea2b6ea320e74389160bec951f0 (diff)
downloadnode-new-21aa0df8b2f4fb8715943c4b0bdc944554be43e8.tar.gz
realpath: No sync cb() calling allowed.
Diffstat (limited to 'test/simple')
-rw-r--r--test/simple/test-fs-realpath.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simple/test-fs-realpath.js b/test/simple/test-fs-realpath.js
index d154e4fcd9..2f126ea300 100644
--- a/test/simple/test-fs-realpath.js
+++ b/test/simple/test-fs-realpath.js
@@ -515,10 +515,13 @@ function test_lying_cache_liar(cb) {
var rps = fs.realpathSync(bluff, cache);
assert.equal(cache[bluff], rps);
var nums = path.resolve('/1/2/3/4/5/6/7');
+ var called = false; // no sync cb calling!
fs.realpath(nums, cache, function(er, rp) {
+ called = true;
assert.equal(cache[nums], rp);
if (--n === 0) cb();
});
+ assert(called === false);
var test = path.resolve('/a/b/c/d'),
expect = path.resolve('/a/b/d');