Use Unix() int64 time for comparing timestamps in kafka consumer

This commit is contained in:
Cameron Sparr 2015-10-16 16:58:52 -06:00
parent b28b4bd71e
commit 73f1ed4f25
1 changed files with 5 additions and 1 deletions

View File

@ -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) {