Skip to content

Commit

Permalink
Merge pull request #1251 from okkez/fix-in_tail-test_lf
Browse files Browse the repository at this point in the history
Set expect_emits properly
  • Loading branch information
tagomoris authored Sep 30, 2016
2 parents 1122182 + fe5b195 commit dada024
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def test_lf

d = create_driver

d.run do
d.run(expect_emits: 1) do
File.open("#{TMP_DIR}/tail.txt", "ab") {|f|
f.print "test3"
}
Expand All @@ -411,7 +411,6 @@ def test_lf
File.open("#{TMP_DIR}/tail.txt", "ab") {|f|
f.puts "test4"
}
sleep 1
end

events = d.events
Expand Down

0 comments on commit dada024

Please sign in to comment.