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

test: fix flaky test when run under load #144

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

trevnorris
Copy link
Member

Running the test with the following:

$ ./tools/test.py -J --repeat=100 test/addons/nsolid-statsdagent/nsolid-statsdagent.js

caused the test to fail in various ways. The fix takes into account that when the test is slowed down under load it's possible for the StatsDAgent instance to be ready before it can be checked in JS, and that the data might have been placed into a single call to 'data'.

Fixes: #142

@trevnorris trevnorris self-assigned this Jun 18, 2024
Running the test with the following:

    $ ./tools/test.py -J --repeat=100 test/addons/nsolid-statsdagent/nsolid-statsdagent.js

caused the test to fail in various ways. The fix takes into account that
when the test is slowed down under load it's possible for the
StatsDAgent instance to be ready before it can be checked in JS, and
that the data might have been placed into a single call to 'data'.

Fixes: #142
PR-URL: #144
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
@trevnorris trevnorris force-pushed the trevnorris/fix-flaky-statsd-test branch from b6cfe61 to c6e2cd4 Compare June 18, 2024 19:25
@trevnorris trevnorris merged commit c6e2cd4 into node-v20.x-nsolid-v5.x Jun 18, 2024
17 of 18 checks passed
@trevnorris trevnorris deleted the trevnorris/fix-flaky-statsd-test branch June 18, 2024 19:26
santigimeno pushed a commit that referenced this pull request Jun 20, 2024
Running the test with the following:

    $ ./tools/test.py -J --repeat=100 test/addons/nsolid-statsdagent/nsolid-statsdagent.js

caused the test to fail in various ways. The fix takes into account that
when the test is slowed down under load it's possible for the
StatsDAgent instance to be ready before it can be checked in JS, and
that the data might have been placed into a single call to 'data'.

Fixes: #142
PR-URL: #144
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
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.

test: addons/nsolid-statsdagent test is flaky
2 participants