-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
estats: remove dependency on testing package #7579
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7579 +/- ##
==========================================
- Coverage 81.73% 81.73% -0.01%
==========================================
Files 361 361
Lines 27809 27808 -1
==========================================
- Hits 22730 22729 -1
+ Misses 3869 3868 -1
- Partials 1210 1211 +1
|
func snapshotMetricsRegistryForTesting(t *testing.T) { | ||
// registry. Returns a cleanup function that sets the metrics registry to its | ||
// original state. | ||
func snapshotMetricsRegistryForTesting() func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this isn't exported anyway, then can't we simply move it into an _test.go
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't do that since internal.SnapshotMetricRegistryForTesting
is set to this unexported function (in an init
function) and the variable in internal
package is used by other tests and therefore needs to be set.
* estats: remove dependency on testing package (#7579) * grpc: fix regression by freeing request bufferslice after processing unary (#7571) --------- Co-authored-by: Easwar Swaminathan <[email protected]> Co-authored-by: Codey Oxley <[email protected]>
Addresses #7568
RELEASE NOTES:
testing
package