Skip to content

Commit

Permalink
Merge pull request #1105 from cosmo0920/use-new-test-driver-syntax-in…
Browse files Browse the repository at this point in the history
…_gc_stat

Use new test driver syntax in in_gc_stat test cases
  • Loading branch information
tagomoris authored Jul 21, 2016
2 parents f2f1c99 + 5d23fae commit 81e2a07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/plugin/test_in_gc_stat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def test_emit
stub(GC).stat { stat }

d = create_driver
d.run do
sleep 2
end
d.run(expect_emits: 2)

events = d.events
assert(events.length > 0)
assert_equal(stat, events[0][2])
assert(events[0][1].is_a?(Fluent::EventTime))
events.each_index {|i|
assert_equal(stat, events[i][2])
assert(events[i][1].is_a?(Fluent::EventTime))
}
end
end

0 comments on commit 81e2a07

Please sign in to comment.