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: mock statsD client during dev/test env #7550

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

kevin9foong
Copy link
Member

@kevin9foong kevin9foong commented Jul 30, 2024

Problem

Closes FRM-1800

When running tests locally (esp during verbose mode), the jest logs are often spammed with error messages due to the above. Adding to the noise and making it hard to debug test cases.

This is a acknowledged issue and occurs all the time when backend unit tests are run.

See example of noise added to test debug logs:
image

Solution

The hotshot client should be run as a mock during dev/test mode as logging to DD is not desired during test/dev.
( see hot-shot mock: https://github.com/brightcove/hot-shots )

Doing so removes the error messages above

@kevin9foong kevin9foong self-assigned this Jul 30, 2024
Copy link
Contributor

@KenLSM KenLSM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for keeping our tests clean!

@kevin9foong kevin9foong merged commit 8f549a9 into develop Jul 30, 2024
26 checks passed
@kevin9foong kevin9foong deleted the fix/statsD-default-route-not-found branch July 30, 2024 11:39
@KenLSM KenLSM mentioned this pull request Aug 1, 2024
Copy link

linear bot commented Aug 12, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants