diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2018-03-06 11:57:06 +0530 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-03-08 10:37:14 -0600 |
commit | d0518c28ceb777206d1b59ca640c47cfb81c5686 (patch) | |
tree | 0aedc73d6d9d1a2017fe40b337b19536acb11d1e /test/sequential | |
parent | 73630e6aaa95ded7dd4b430d46ed05d2bfab92ce (diff) | |
download | android-node-v8-d0518c28ceb777206d1b59ca640c47cfb81c5686.tar.gz android-node-v8-d0518c28ceb777206d1b59ca640c47cfb81c5686.tar.bz2 android-node-v8-d0518c28ceb777206d1b59ca640c47cfb81c5686.zip |
test: rename test-regress-GH-4027
Rename the test appropriately alongside mentioning the subsystem
Also, make a few basic changes to make sure the test conforms
to the standard test structure
Refs: https://github.com/nodejs/node/issues/19105
Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
PR-URL: https://github.com/nodejs/node/pull/19161
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-regress-fs-watch_file.js (renamed from test/sequential/test-regress-GH-4027.js) | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/sequential/test-regress-GH-4027.js b/test/sequential/test-regress-fs-watch_file.js index 8936537323..f5b9012aca 100644 --- a/test/sequential/test-regress-GH-4027.js +++ b/test/sequential/test-regress-fs-watch_file.js @@ -21,6 +21,17 @@ 'use strict'; const common = require('../common'); + +// Make sure the deletion event gets reported in the following scenario: +// 1. Watch a file. +// 2. The initial stat() goes okay. +// 3. Something deletes the watched file. +// 4. The second stat() fails with ENOENT. + +// The second stat() translates into the first 'change' event but a logic error +// stopped it from getting emitted. +// https://github.com/nodejs/node-v0.x-archive/issues/4027 + const assert = require('assert'); const path = require('path'); const fs = require('fs'); |