We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdbfc0e commit 2262a34Copy full SHA for 2262a34
test/sequential/test-regress-GH-4027.js test/sequential/test-regress-fs-watch_file.js
@@ -21,6 +21,17 @@
21
22
'use strict';
23
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
35
const assert = require('assert');
36
const path = require('path');
37
const fs = require('fs');
0 commit comments