Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix open handles #6

Open
iolo opened this issue Mar 14, 2022 · 1 comment
Open

fix open handles #6

iolo opened this issue Mar 14, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@iolo
Copy link
Contributor

iolo commented Mar 14, 2022

It looks like https.request makes open handles.

Jest has detected the following 2 open handles potentially keeping Jest from exiting:

  ●  TLSWRAP

      19 |
      20 |     const request = isHttps ? https.request : http.request;
    > 21 |     const req = request(options, (res: IncomingMessage) => {
         |                 ^
      22 |       log('statusCode:', res.statusCode);
      23 |       log('headers:', res.headers);
      24 |       res.setEncoding('utf8');

      at http-request-async.ts:21:17
      at httpRequestAsync (http-request-async.ts:13:10)
      at Object.<anonymous> (http-request-async.spec.ts:19:41)
      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)


  ●  TLSWRAP

      19 |
      20 |     const request = isHttps ? https.request : http.request;
    > 21 |     const req = request(options, (res: IncomingMessage) => {
         |                 ^
      22 |       log('statusCode:', res.statusCode);
      23 |       log('headers:', res.headers);
      24 |       res.setEncoding('utf8');

      at http-request-async.ts:21:17
      at httpRequestAsync (http-request-async.ts:13:10)
      at Object.<anonymous> (http-request-async.spec.ts:25:41)
      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)
@iolo iolo added the help wanted Extra attention is needed label Mar 14, 2022
@moonimooni
Copy link
Contributor

jestjs/jest#11665 (comment)
이 문제인것 같습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants