From 0cb4ed8d4ece46a12462bf49fd385eff385a5b47 Mon Sep 17 00:00:00 2001 From: Mike Treaster Date: Tue, 10 May 2016 00:01:16 +0000 Subject: [PATCH] Fix test failures introduced by a65ea2a - 'Fix count statsd string; should be "c", not "a" (absolute)' --- event/precisiontiming_test.go | 2 +- event/timing_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/event/precisiontiming_test.go b/event/precisiontiming_test.go index 28eb3ee..8cfc8cf 100644 --- a/event/precisiontiming_test.go +++ b/event/precisiontiming_test.go @@ -13,7 +13,7 @@ func TestPrecisionTimingUpdate(t *testing.T) { e1.Update(e2) e1.Update(e3) - expected := []string{"test.count:3|a", "test.avg:0.005000|ms", "test.min:0.003000|ms", "test.max:0.007000|ms"} + expected := []string{"test.count:3|c", "test.avg:0.005000|ms", "test.min:0.003000|ms", "test.max:0.007000|ms"} actual := e1.Stats() if !reflect.DeepEqual(expected, actual) { t.Errorf("did not receive all metrics: Expected: %T %v, Actual: %T %v ", expected, expected, actual, actual) diff --git a/event/timing_test.go b/event/timing_test.go index 68d3d37..4ea77d7 100644 --- a/event/timing_test.go +++ b/event/timing_test.go @@ -12,7 +12,7 @@ func TestTimingUpdate(t *testing.T) { e1.Update(e2) e1.Update(e3) - expected := []string{"test.count:3|a", "test.avg:5|ms", "test.min:3|ms", "test.max:7|ms"} + expected := []string{"test.count:3|c", "test.avg:5|ms", "test.min:3|ms", "test.max:7|ms"} actual := e1.Stats() if !reflect.DeepEqual(expected, actual) { t.Errorf("did not receive all metrics: Expected: %T %v, Actual: %T %v ", expected, expected, actual, actual)