Use Unix() int64 time for comparing timestamps in kafka consumer
This commit is contained in:
parent
b28b4bd71e
commit
73f1ed4f25
|
@ -71,7 +71,11 @@ func TestEmitMetricsSendMetricsToAcc(t *testing.T) {
|
||||||
"region": "us-west",
|
"region": "us-west",
|
||||||
}, point.Tags)
|
}, point.Tags)
|
||||||
|
|
||||||
assert.Equal(t, time.Unix(0, 1422568543702900257), point.Time)
|
if time.Unix(0, 1422568543702900257).Unix() != point.Time.Unix() {
|
||||||
|
t.Errorf("Expected: %v, received %v\n",
|
||||||
|
time.Unix(0, 1422568543702900257).Unix(),
|
||||||
|
point.Time.Unix())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestEmitMetricsTimesOut(t *testing.T) {
|
func TestEmitMetricsTimesOut(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue