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 unmocked block tracker warning in NetworkController tests #5289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Feb 5, 2025

Explanation

When running one of the tests for NetworkController, we were seeing a warning in the test output indicating that a request from the block tracker was not properly mocked. This commit adds that mock so the warning goes away.

References

(None)

Changelog

(N/A, developer-only change)

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

When running one of the tests for the `destroy` method, an error from
the block tracker can be observed. This error does not fail the test,
but it creates noise in the output. It turns out that this happens
because we are failing to mock a request in the test. This commit adds
the requisite test so that the `console.error` goes away.
@mcmire mcmire marked this pull request as ready for review February 6, 2025 00:23
@mcmire mcmire requested review from a team as code owners February 6, 2025 00:23
@mcmire mcmire changed the title Fix stray console.error in NetworkController tests Fix unmocked block tracker warning in NetworkController tests Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant