Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: don't use deprecated way of capturing logs (#7)
`capture_log` is for older versions as well as the following. https://github.com/fluent/fluentd/blob/6c649d189b5cf65ccfce58f6952a31b24c775e72/lib/fluent/test/helpers.rb#L110-L122 We should use `Driver::logs` instead. In addition, this fixes the following points. * Update `helper.rb` since it was updated very long ago and there are some unnecessary codes. * Assert the entire log message (without the timestamp and the log level), since this is easier to see the diff of the expected and the actual when the assertion fails. Signed-off-by: Daijiro Fukuda <[email protected]>
- Loading branch information