Skip to content

Promise queue interval started when not required #831

@tuliomir

Description

@tuliomir

When running Jest locally without the automatic exit functionality, one process is kept open after the test finishes. Investigating this, @luislhl could find the following code:

const GLL = new PromiseQueue();

Which then instantiates a custom built interval:

this.#startInterval();

Since this code runs at the module root, any client importing the wallet-lib automatically runs this interval even if unneeded. This causes the issue with Jest testing, for example.

We should refactor this code in a way that this interval is only started when necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions