test/plugin/asserts.rb
# Compare the timestamp seconds and nanoseconds with the expected timestamp.
Compare the timestamp seconds and nanoseconds with the expected timestamp.
Compare the timestamp seconds and nanoseconds with the expected timestamp .
def assert_timestamp_matches(expected_ts, ts_secs, ts_nanos, entry)
    assert_equal expected_ts.tv_sec, ts_secs, entry
    assert_in_delta expected_ts.tv_nsec, ts_nanos, 600, entry
  end
def assert_timestamp_matches ( expected_ts , ts_secs , ts_nanos , entry ) assert_equal expected_ts . tv_sec , ts_secs , entry assert_in_delta expected_ts . tv_nsec , ts_nanos , 600 , entry end
Compare the timestamp seconds and nanoseconds with the expected timestamp.
Compare the timestamp seconds and nanoseconds with the expected timestamp .
# Fluentd v0.14 onwards supports nanosecond timestamp values. # Added in 600 ns delta to avoid flaky tests introduced # due to rounding error in double-precision floating-point numbers # (to account for the missing 9 bits of precision ~ 512 ns). # See http://wikipedia.org/wiki/Double-precision_floating-point_format.
expected_ts
<not_specific>
ts_secs
<not_specific>
ts_nanos
<not_specific>
entry
<not_specific>