Skip to content

Commit

Permalink
fix test to read quantile metrics with p prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
feliksik committed Aug 9, 2017
1 parent f583a20 commit c961428
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metrics/cloudwatch/cloudwatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ func TestHistogram(t *testing.T) {
svc := newMockCloudWatch()
cw := New(namespace, svc, WithLogger(log.NewNopLogger()))
histogram := cw.NewHistogram(name).With(label, value)
n50 := fmt.Sprintf("%s_50", name)
n90 := fmt.Sprintf("%s_90", name)
n95 := fmt.Sprintf("%s_95", name)
n99 := fmt.Sprintf("%s_99", name)
n50 := fmt.Sprintf("%s_p50", name)
n90 := fmt.Sprintf("%s_p90", name)
n95 := fmt.Sprintf("%s_p95", name)
n99 := fmt.Sprintf("%s_p99", name)
quantiles := func() (p50, p90, p95, p99 float64) {
err := cw.Send()
if err != nil {
Expand Down

0 comments on commit c961428

Please sign in to comment.