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

Ensure consistent configuration in writer test #1256

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Nov 18, 2020

In https://github.com/DataDog/dd-trace-rb/pull/1248/files#diff-ffc89a0ffd0de70be571ade8e3296d6a96c3126da82421877a6027b533d72773L260-R268, a few RSpec mock setup statements have been refactored.

This ended up leaving Datadog.configuration.runtime_metrics.enabled not properly mocked for all example groups in that context.

This PR ensures that Datadog.configuration.runtime_metrics.enabled is correctly mocked for all #write tests in that test file. This fixes flaky CI issues like this one.

@marcotc marcotc added the dev/testing Involves testing processes (e.g. RSpec) label Nov 18, 2020
@marcotc marcotc requested a review from a team November 18, 2020 21:25
@marcotc marcotc self-assigned this Nov 18, 2020
Copy link
Contributor

@ericmustin ericmustin left a comment

Choose a reason for hiding this comment

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

Lgtm

@marcotc marcotc merged commit 7c9a3a7 into master Nov 19, 2020
@marcotc marcotc deleted the test/ensure-runtime branch November 19, 2020 18:46
@github-actions github-actions bot added this to the 0.44.0 milestone Nov 19, 2020
@marcotc marcotc changed the title Ensure consisten configuration in writer test Ensure consistent configuration in writer test Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/testing Involves testing processes (e.g. RSpec)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants