diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 11:47:25 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 14:21:31 -0700 |
commit | 9fd5e3c89cb3664be7491c2da8e7060a0c36e135 (patch) | |
tree | d748de58c1638e852d33374c328a45f6ab8d2268 /test/simple/test-fs-read-stream.js | |
parent | 94728125696ce05f5308ccbc111874e9fa936936 (diff) | |
download | node-new-9fd5e3c89cb3664be7491c2da8e7060a0c36e135.tar.gz |
Update tests to work with module contexts
Diffstat (limited to 'test/simple/test-fs-read-stream.js')
-rw-r--r-- | test/simple/test-fs-read-stream.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/simple/test-fs-read-stream.js b/test/simple/test-fs-read-stream.js index 8c27e5cf7a..71165fdac9 100644 --- a/test/simple/test-fs-read-stream.js +++ b/test/simple/test-fs-read-stream.js @@ -1,4 +1,5 @@ -require('../common'); +common = require("../common"); +assert = common.assert // TODO Improved this test. test_ca.pem is too small. A proper test would // great a large utf8 (with multibyte chars) file and stream it in, @@ -7,7 +8,7 @@ require('../common'); Buffer = require('buffer').Buffer; path = require('path'); fs = require('fs'); -fn = path.join(fixturesDir, 'elipses.txt'); +fn = path.join(common.fixturesDir, 'elipses.txt'); callbacks = { open: 0, end: 0, close: 0, destroy: 0 }; |