Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profiler: make TestSetProfileFraction more isolated (#1281)
TestAllUploaded starts the mutex profiler. Currently the profiler doesn't re-set the profile rate when Stop is called. This causes TestSetProfileFraction/on to fail if it's run after TestAllUploaded since the test checks that the old rate is different than the new rate, but in both cases the rates are the default rate. This commit changes the test to start by setting the rate to 0 and then checking that it's either the default value or still 0 after starting the profiler. This makes the test more isolated and not influenced by what other tests do to the mutex profile fraction. Fixes #1279 Co-authored-by: Felix Geisendörfer <felix@datadoghq.com>
- Loading branch information