mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
Merge pull request #175 from prometheus/refactor/tests/affix-timezone
Convert the TestInstant value into UTC.
This commit is contained in:
commit
5f773cc332
|
@ -23,7 +23,7 @@ import (
|
||||||
var (
|
var (
|
||||||
// ``hg clone https://code.google.com/p/go ; cd go ; hg log | tail -n 20``
|
// ``hg clone https://code.google.com/p/go ; cd go ; hg log | tail -n 20``
|
||||||
usEastern, _ = time.LoadLocation("US/Eastern")
|
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) {
|
func testAppendSample(p MetricPersistence, s model.Sample, t test.Tester) {
|
||||||
|
|
Loading…
Reference in a new issue