diff options
Diffstat (limited to 'test/sequential/test-http2-timeout-large-write-file.js')
-rw-r--r-- | test/sequential/test-http2-timeout-large-write-file.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sequential/test-http2-timeout-large-write-file.js b/test/sequential/test-http2-timeout-large-write-file.js index bb366cfff0..520958bd57 100644 --- a/test/sequential/test-http2-timeout-large-write-file.js +++ b/test/sequential/test-http2-timeout-large-write-file.js @@ -33,6 +33,7 @@ const content = Buffer.alloc(writeSize, 0x44); const filepath = path.join(tmpdir.path, 'http2-large-write.tmp'); fs.writeFileSync(filepath, content, 'binary'); const fd = fs.openSync(filepath, 'r'); +process.on('beforeExit', () => fs.closeSync(fd)); const server = http2.createSecureServer({ key: fixtures.readKey('agent1-key.pem'), |