-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
When utilizing this package, or running tests, it's timing out.
Results from test script (with added --detectOpenHandles option):
➜ npm run test
> node-untappd@0.6.1 test
> ./node_modules/.bin/jest --detectOpenHandles
PASS __tests__/Request.js
Requests
✓ Handles parse errors (40 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.395 s, estimated 1 s
Ran all test suites.
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
● TCPWRAP
99 | }
100 |
> 101 | var request = HTTPS.request(options, function(response) {
| ^
102 | response.setEncoding("utf8");
103 | var data = "";
104 |
at req (UntappdClient.js:101:23)
at get (UntappdClient.js:55:10)
at UntappdClient.beerInfo (UntappdClient.js:320:10)
at Object.<anonymous> (__tests__/Request.js:28:11)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (node_modules/@jest/core/build/cli/index.js:173:3)
node:events:504
throw er; // Unhandled 'error' event
^
Error: socket hang up
at connResetException (node:internal/errors:691:14)
at TLSSocket.socketOnEnd (node:_http_client:466:23)
at TLSSocket.emit (node:events:538:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ClientRequest instance at:
at TLSSocket.socketOnEnd (node:_http_client:466:9)
at TLSSocket.emit (node:events:538:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'ECONNRESET'
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels