diff options
author | Luca Casonato <hello@lcas.dev> | 2021-07-20 21:06:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 21:06:24 +0200 |
commit | a2512de95f2e03008e631a7b19405317d8c361b8 (patch) | |
tree | 6ec8b1bff9d5c48ade49894073cc4728a0d5d0d6 /cli/tests/integration/run_tests.rs | |
parent | d744c0c6d9a557bbaa2a23571ffb3acabf19c35a (diff) |
fix: close fetch response body on GC (#11467)
This commit fixes fetch response bodies to be automatically closed if
the `Response.body` readable stream goes out of scope and is GC'ed.
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 08e0c8306..88b7f5928 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -372,6 +372,13 @@ itest!(blob_gc_finalization { exit_code: 0, }); +itest!(fetch_response_finalization { + args: "run --v8-flags=--expose-gc --allow-net fetch_response_finalization.js", + output: "fetch_response_finalization.js.out", + http_server: true, + exit_code: 0, +}); + itest!(lock_write_requires_lock { args: "run --lock-write some_file.ts", output: "lock_write_requires_lock.out", |