Skip to content

Commit 1f2509f

Browse files
committed
more debug statements
1 parent 01e5232 commit 1f2509f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/reader-watch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export function createReaderWatch(filePath, { signal } = {}) {
4343
},
4444
{
4545
close: () => {
46+
console.log('Closing watcher and reader')
4647
watcher.close()
4748
signal?.removeEventListener('abort', readerClose)
4849
return readerClose()

test/reader-watch.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ const FIXTURE2_PATH = path.join(__dirname, 'fixtures', 'osm-bright-z6.smp')
1818
function tempDir(t) {
1919
const dir = fs.mkdtempSync(path.join(tmpdir(), 'comapeo-map-server-'))
2020
t.after(async () => {
21+
console.log('tempDir cleanup')
2122
// Wait on Windows to ensure all file handles are released
2223
if (process.platform === 'win32') {
2324
await setTimeout(500)
2425
}
26+
console.log('attempting to delete')
2527
fs.rmSync(dir, { recursive: true, force: true })
2628
})
2729
return dir

0 commit comments

Comments
 (0)