Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Fix filelog receiver test with new
component.ValidateConfig
…
… behavior (#37448) #### Description `component.ValidateConfig` now validates interfaces. The `(*helper.TimeParser).Validate` method is now called while validating `FileLogConfig` and as a result, the struct is modified during validation. The simplest fix seemed to be to apply these same changes to the expected config struct by calling `Validate` on it, even though the assertion logic in the test now feels a little circular. I can try to refactor the struct a bit to make it more directly testable if desired. This is needed for #37447. --------- Co-authored-by: Evan Bradley <[email protected]>
- Loading branch information