Skip to content

Commit c4f9c0f

Browse files
committed
test: follow fixed time
Fluent::EventTime#to_i returns seconds, not nano-seconds. GitHub: #1 Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 044d881 commit c4f9c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/plugin/test_time_collector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_time_now
99
stub(Fluent::EventTime).now { Fluent::EventTime.new(1e9) }
1010
collector.run
1111
time_seconds = collector.cmetrics[:time_seconds]
12-
assert_equal(1.0, time_seconds.val)
12+
assert_equal(1_000_000_000, time_seconds.val)
1313
end
1414
end
1515
end

0 commit comments

Comments
 (0)