Skip to content

CI: test_cat_secondary_file fails with NoMethodError: undefined method first' for nil:NilClass` on Windows #4729

@Watson1978

Description

@Watson1978

Describe the bug

Sometimes, test_cat_secondary_file test fails with following error:

1) Error: test_cat_secondary_file(TestFluentCat::msgpack): NoMethodError: undefined method `first' for nil:NilClass
D:/a/fluentd/fluentd/test/command/test_cat.rb:96:in `test_cat_secondary_file'
     93:       end
     94:       event = d.events.first
     95:       assert_equal([1, "secondary", @record],
  => 96:                    [d.events.size, event.first, event.last])
     97:     end
     98:   end
     99: 

To Reproduce

Run CI

Expected behavior

No error

Your Environment

- Fluentd version:
- Package version:
- Operating system:
- Kernel version:

Your Configuration

none

Your Error Log

See above

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CITest/CI issues

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions