Skip to content

Commit 61162a5

Browse files
committed
windows debugging
1 parent 1f2509f commit 61162a5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/reader-watch.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function tempDir(t) {
2121
console.log('tempDir cleanup')
2222
// Wait on Windows to ensure all file handles are released
2323
if (process.platform === 'win32') {
24-
await setTimeout(500)
24+
await setTimeout(1000)
2525
}
2626
console.log('attempting to delete')
2727
fs.rmSync(dir, { recursive: true, force: true })
@@ -111,6 +111,12 @@ test('createReaderWatch - file is deleted', async (t) => {
111111
await setTimeout(200) // Wait for watcher to detect change
112112

113113
const reader2 = getReader()
114+
try {
115+
await reader2.getStyle()
116+
console.log('Style read succeeded unexpectedly after file deletion')
117+
} catch (err) {
118+
console.log(err)
119+
}
114120
// Attempting to read should now throw ENOENT
115121
await assert.rejects(
116122
async () => await reader2.getStyle(),

0 commit comments

Comments
 (0)