From a32602140ee50ae1de3f939d7e5a37b35440c307 Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Tue, 23 Apr 2013 18:58:39 +0200 Subject: [PATCH] Convert the TestInstant value into UTC. For the forthcoming Curator, we don't record timezone information in the samples, nor do we in the curation remarks. All times are recorded UTC. That said, for the test environment to better match production, the special instant should be in UTC. --- storage/metric/test_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/metric/test_helper.go b/storage/metric/test_helper.go index 2a1cd74fc..a63c6ac3b 100644 --- a/storage/metric/test_helper.go +++ b/storage/metric/test_helper.go @@ -23,7 +23,7 @@ import ( var ( // ``hg clone https://code.google.com/p/go ; cd go ; hg log | tail -n 20`` usEastern, _ = time.LoadLocation("US/Eastern") - testInstant = time.Date(1972, 7, 18, 19, 5, 45, 0, usEastern) + testInstant = time.Date(1972, 7, 18, 19, 5, 45, 0, usEastern).In(time.UTC) ) func testAppendSample(p MetricPersistence, s model.Sample, t test.Tester) {