()
| 271 | |
| 272 | // Check that concurrent read() operations don't do weird things. |
| 273 | async function doConcurrentAsyncOps() { |
| 274 | const dir = await fs.promises.opendir(testDir); |
| 275 | const promise1 = dir.read(); |
| 276 | const promise2 = dir.read(); |
| 277 | |
| 278 | assertDirent(await promise1); |
| 279 | assertDirent(await promise2); |
| 280 | dir.closeSync(); |
| 281 | } |
| 282 | doConcurrentAsyncOps().then(common.mustCall()); |
| 283 | |
| 284 | // Check that concurrent read() + close() operations don't do weird things. |
no test coverage detected
searching dependent graphs…