()
| 283 | |
| 284 | // Check that concurrent read() + close() operations don't do weird things. |
| 285 | async function doConcurrentAsyncMixedOps() { |
| 286 | const dir = await fs.promises.opendir(testDir); |
| 287 | const promise1 = dir.read(); |
| 288 | const promise2 = dir.close(); |
| 289 | |
| 290 | assertDirent(await promise1); |
| 291 | await promise2; |
| 292 | } |
| 293 | doConcurrentAsyncMixedOps().then(common.mustCall()); |
| 294 | |
| 295 | // Check if directory already closed - the callback should pass an error. |
no test coverage detected
searching dependent graphs…