Skip to content

Commit

Permalink
test_in_tail: Make sure to wait completing first read
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed Jun 1, 2022
1 parent eec3974 commit 65af256
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/plugin/test_in_tail.rb
Expand Up @@ -985,6 +985,7 @@ def sub_test_rotate_file(config = nil, expect_emits: nil, expect_records: nil, t

d = create_driver(config)
d.run(expect_emits: expect_emits, expect_records: expect_records, timeout: timeout) do
sleep(0.1) while d.instance.instance_variable_get(:@startup)
size = d.emit_count
file.puts "test3"
file.puts "test4"
Expand Down

0 comments on commit 65af256

Please sign in to comment.