Leaking operation op_http_close in tests
I tried to update my repositories from Deno 1.38.1 to 1.38.4. After the update my test keeps failing with the error message "1 async operation to op_http_close was started in this test, but never completed.". I tried every version in between but had to revert to 1.38.1.
Failing CI run: https://github.com/sgohlke/deno-web/actions/runs/7092893428/job/19305155074
Revert to Deno 1.38.1 is green: https://github.com/sgohlke/deno-web/actions/runs/7092893428
Failing test: https://github.com/sgohlke/deno-web/blob/main/response/responseFunctions_test.ts#L34
I use AbortController to send an AbortSignal to the server. I tried to add the finished function and console.log like in the example on https://deno.land/api@v1.38.4?s=Deno.serve , it did not help. I also tried to store the server in a const and call "await server.shutdown()", but this results in TS error "TS2339 [ERROR]: Property 'shutdown' does not exist on type 'HttpServer'."
Does anyone have an idea how to fix this issue?
Failing CI run: https://github.com/sgohlke/deno-web/actions/runs/7092893428/job/19305155074
Revert to Deno 1.38.1 is green: https://github.com/sgohlke/deno-web/actions/runs/7092893428
Failing test: https://github.com/sgohlke/deno-web/blob/main/response/responseFunctions_test.ts#L34
I use AbortController to send an AbortSignal to the server. I tried to add the finished function and console.log like in the example on https://deno.land/api@v1.38.4?s=Deno.serve , it did not help. I also tried to store the server in a const and call "await server.shutdown()", but this results in TS error "TS2339 [ERROR]: Property 'shutdown' does not exist on type 'HttpServer'."
Does anyone have an idea how to fix this issue?
GitHub
Webserver and helper functions in Deno. Contribute to sgohlke/deno-web development by creating an account on GitHub.
GitHub
Webserver and helper functions in Deno. Contribute to sgohlke/deno-web development by creating an account on GitHub.
GitHub
Webserver and helper functions in Deno. Contribute to sgohlke/deno-web development by creating an account on GitHub.
