Skip to content

Commit

Permalink
update tests according to a PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniaMartynova-thebeat committed Jan 13, 2022
1 parent 40691fb commit a0fad1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trace/metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestCounter_Add(t *testing.T) {
if tt.expectedPanic {
defer func() {
if r := recover(); r == nil {
t.Errorf("Add method did not panic.")
t.Error("Add method did not panic.")
}
}()
}
Expand All @@ -74,7 +74,7 @@ func TestCounter_Add(t *testing.T) {
if tt.expectedPanic {
defer func() {
if r := recover(); r == nil {
t.Errorf("Add method did not panic.")
t.Error("Add method did not panic.")
}
}()
} else {
Expand Down Expand Up @@ -214,7 +214,7 @@ func sampleSum(c prometheus.Collector) (float64, error) {
}

pb := &dto.Metric{}
m.Write(pb)
_ = m.Write(pb)

if pb.Histogram != nil {
return *pb.Histogram.SampleSum, nil
Expand Down

0 comments on commit a0fad1b

Please sign in to comment.