Skip to content

ELDHISTOGRAM open handleΒ #10020

@electriquo

Description

@electriquo

πŸ› Bug Report

i use prom-client version 12.0.0.

when i run jest --detectOpenHandles i get

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

  ●  ELDHISTOGRAM

      3 | const client = require("prom-client");
      4 | const prefix = "foo";
    > 5 | client.collectDefaultMetrics({ prefix });

To Reproduce

// prom.test.js

const client = require("prom-client");
const prefix = "foo";
client.collectDefaultMetrics({ prefix });
$ npm install prom-client --save
$ npm test prom.test.js

Expected behavior

when running jest --detectOpenHandles, it should not detect ELDHISTOGRAM as open handle

envinfo

$ npx envinfo --preset jest
npx: installed 1 in 2.624s

  System:
    OS: macOS 10.15.4
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  Binaries:
    Node: 14.2.0 - ~/.nvm/versions/node/v14.2.0/bin/node
    npm: 6.14.5 - ~/.nvm/versions/node/v14.2.0/bin/npm
  npmPackages:
    jest: ^26.0.1 => 26.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions