Steve
Steve
DDeno
Created by Steve on 12/4/2023 in #help
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?
8 replies
DDeno
Created by Steve on 1/31/2023 in #help
Use local tgz file instead of tgz from npm registry
Hello, Is it possible to reference a local tgz file inside a deno project (like calling npm install my-lib-1.0.0.tgz)? I'm working on the open source library https://github.com/dreamit-de/graphql-server/ on a PR to make it possible to use the library in Deno. I would like to test if a change is working so my idea was to create a tgz file with npm pack, add it to an example Deno project and see if it runs in Deno.
2 replies