Skip to content

Commit

Permalink
Set expect_emits properly
Browse files Browse the repository at this point in the history
This can avoid occasional test failure.
  • Loading branch information
okkez committed Sep 29, 2016
1 parent aef8809 commit fe5b195
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 @@ -401,7 +401,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 @@ -410,7 +410,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 fe5b195

Please sign in to comment.