()
| 25 | assert(fs.existsSync(fullPath), 'Test file should exist'); |
| 26 | |
| 27 | async function runTest() { |
| 28 | try { |
| 29 | await checkIfCollectableByCounting( |
| 30 | () => { |
| 31 | for (let i = 0; i < 10; i++) { |
| 32 | fs.existsSync(fullPath); |
| 33 | } |
| 34 | return 10; |
| 35 | }, |
| 36 | FSReqCallback, |
| 37 | 10 |
| 38 | ); |
| 39 | } catch (err) { |
| 40 | assert.ifError(err, 'Memory leak detected: FSReqCallback objects were not collected'); |
| 41 | } finally { |
| 42 | tmpdir.refresh(); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | runTest().then(common.mustCall()); |
| 47 | } |
no test coverage detected
searching dependent graphs…