Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Stop the custom meter in test to prevent leaking goroutines.
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson committed Feb 13, 2020
1 parent 79ead5a commit 4bd9e42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stats/record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func cmpExemplar(got, want *metricdata.Exemplar) string {
func TestRecordWithMeter(t *testing.T) {
meter := view.NewMeter()
meter.Start()
defer meter.Stop()
k1 := tag.MustNewKey("k1")
k2 := tag.MustNewKey("k2")
m1 := stats.Int64("TestResolveOptions/m1", "", stats.UnitDimensionless)
Expand Down

0 comments on commit 4bd9e42

Please sign in to comment.