Skip to content

Commit 2262a34

Browse files
ryzokukenMylesBorins
authored andcommitted
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: #19105 Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure PR-URL: #19161 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent bdbfc0e commit 2262a34

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/sequential/test-regress-GH-4027.js test/sequential/test-regress-fs-watch_file.js

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
25+
// Make sure the deletion event gets reported in the following scenario:
26+
// 1. Watch a file.
27+
// 2. The initial stat() goes okay.
28+
// 3. Something deletes the watched file.
29+
// 4. The second stat() fails with ENOENT.
30+
31+
// The second stat() translates into the first 'change' event but a logic error
32+
// stopped it from getting emitted.
33+
// https://github.com/nodejs/node-v0.x-archive/issues/4027
34+
2435
const assert = require('assert');
2536
const path = require('path');
2637
const fs = require('fs');

0 commit comments

Comments
 (0)