diff options
author | James M Snell <jasnell@gmail.com> | 2018-01-11 16:14:33 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-01-18 14:06:33 -0800 |
commit | 4b9ba9b83390f351d4a9f32ffef7730f87b17d2b (patch) | |
tree | 6aff2f961d20d7450b6902306d47265267f924de /test/sequential/test-async-wrap-getasyncid.js | |
parent | a7a1ada5b2afd586a8b73822ae0b3f59059a3552 (diff) | |
download | android-node-v8-4b9ba9b83390f351d4a9f32ffef7730f87b17d2b.tar.gz android-node-v8-4b9ba9b83390f351d4a9f32ffef7730f87b17d2b.tar.bz2 android-node-v8-4b9ba9b83390f351d4a9f32ffef7730f87b17d2b.zip |
fs: encapsulate FSReqWrap more
In further preparation for the Promises enabled fs API,
further encapsulate FSReqWrap details.
The intent here is to isolate, as much as possible, the
functionality of the various fs functions from the details
of how the results are notified. The promises implementation
will use a `FSReqPromise` alternative to `FSReqWrap` that
will use the same API so that both models can be used without
changing any of the actual implementation details for the
various methods.
PR-URL: https://github.com/nodejs/node/pull/18112
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/sequential/test-async-wrap-getasyncid.js')
-rw-r--r-- | test/sequential/test-async-wrap-getasyncid.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 58d6b77469..f5b6843ef9 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -112,9 +112,8 @@ if (common.hasCrypto) { // eslint-disable-line crypto-check const req = new FSReqWrap(); req.oncomplete = () => { }; - testUninitialized(req, 'FSReqWrap'); - binding.access(path.toNamespacedPath('../'), fs.F_OK, req); testInitialized(req, 'FSReqWrap'); + binding.access(path.toNamespacedPath('../'), fs.F_OK, req); const StatWatcher = binding.StatWatcher; testInitialized(new StatWatcher(), 'StatWatcher'); |