Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_in_tail: Reduce information of test_unwatched_files_should_be_removed #3785

Merged
merged 1 commit into from Jun 14, 2022

Commits on Jun 14, 2022

  1. test_in_tail: Reduce information of test_unwatched_files_should_be_re…

    …moved
    
    Showing whole @Tails seems too heavy on CI environment:
    
    ```
    2022-06-14T07:17:55.0456030Z Error: test_unwatched_files_should_be_removed(TailInputTest::path): SystemStackError: stack level too deep
    2022-06-14T07:17:55.2289960Z /Users/runner/hostedtoolcache/Ruby/2.7.6/x64/lib/ruby/2.7.0/pp.rb:179:in `bind_call'
    2022-06-14T07:17:55.2290470Z /Users/runner/hostedtoolcache/Ruby/2.7.6/x64/lib/ruby/2.7.0/pp.rb:179:in `object_address_group'
    2022-06-14T07:17:55.2291380Z /Users/runner/hostedtoolcache/Ruby/2.7.6/x64/lib/ruby/2.7.0/pp.rb:241:in `pp_object'
    ...
    2022-06-14T07:17:55.5055170Z /Users/runner/work/fluentd/fluentd/test/plugin/test_in_tail.rb:1615:in `test_unwatched_files_should_be_removed'
    2022-06-14T07:17:55.5055350Z      1612:       waiting(20) { sleep 0.1 until Dir.glob("#{@tmp_dir}/*.txt").size == 0 } # Ensure file is deleted on Windows
    2022-06-14T07:17:55.5055520Z      1613:       waiting(5) { sleep 0.1 until d.instance.instance_variable_get(:@Tails).keys.size <= 0 }
    2022-06-14T07:17:55.5055590Z      1614:
    2022-06-14T07:17:55.5055670Z   => 1615:       assert_equal(
    2022-06-14T07:17:55.5055730Z      1616:         {
    2022-06-14T07:17:55.5055810Z      1617:           files: [],
    2022-06-14T07:17:55.5055880Z      1618:           tails: {}
    ```
    
    Follow up for #3784
    
    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed Jun 14, 2022
    Copy the full SHA
    892de54 View commit details
    Browse the repository at this point in the history