()
| 220 | // ============================================================================= |
| 221 | |
| 222 | async function testNoAutoClose() { |
| 223 | const filePath = path.join(tmpDir, 'pullsync-no-autoclose.txt'); |
| 224 | fs.writeFileSync(filePath, 'still open'); |
| 225 | |
| 226 | const fh = await open(filePath, 'r'); |
| 227 | const data = textSync(fh.pullSync()); |
| 228 | assert.strictEqual(data, 'still open'); |
| 229 | |
| 230 | // Handle should still be open and reusable |
| 231 | const stat = await fh.stat(); |
| 232 | assert.ok(stat.size > 0); |
| 233 | await fh.close(); |
| 234 | } |
| 235 | |
| 236 | // ============================================================================= |
| 237 | // Lock semantics - pullSync locks the handle |
no test coverage detected