Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent/accumulator: expose GetTime to give input plugins a chance to r… #4078

Merged
merged 5 commits into from
Apr 27, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
space-after-comma makes gofmt happy
  • Loading branch information
zerodeux committed Apr 26, 2018
commit 4ae9475aca819a7870da4e8dd187cae847ad5e83
2 changes: 1 addition & 1 deletion agent/accumulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func TestGetTime(t *testing.T) {
assert.InDelta(t, 0, time.Now().Sub(t0), 1e9, "returns current timestamp")

a.SetPrecision(0, time.Nanosecond)
t1 := time.Unix(42,99)
t1 := time.Unix(42, 99)
t2 := a.GetTime([]time.Time{t1})
assert.Equal(t, t1, t2, "passthru given timestamp")
}
Expand Down