You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/plugin/test_filter_obsolete_plugins.rb
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class ObsoletePluginsFilterTest < Test::Unit::TestCase
23
23
d.feed({message: "This is test message."})
24
24
end
25
25
assert_equal([{message: "This is test message."}],d.filtered_records)
26
-
assert_equal([],$log.logs)
26
+
assert_equal([],d.logs)
27
27
end
28
28
29
29
test"obsolete plugins"do
@@ -42,7 +42,7 @@ class ObsoletePluginsFilterTest < Test::Unit::TestCase
42
42
"#{@time} [warn]: fluent-plugin-tail-multiline is obsolete: Merged in in_tail in Fluentd v0.10.45. [fluent/fluentd#269](https://github.com/fluent/fluentd/issues/269)\n",
43
43
"#{@time} [warn]: fluent-plugin-hostname is obsolete: Use [filter\\_record\\_transformer](http://docs.fluentd.org/v0.12/articles/filter_record_transformer) instead.\n"
44
44
]
45
-
assert_equal(expected_logs,$log.logs)
45
+
assert_equal(expected_logs,d.logs)
46
46
end
47
47
48
48
test"raise error when detect obsolete plugins"do
@@ -56,11 +56,6 @@ class ObsoletePluginsFilterTest < Test::Unit::TestCase
56
56
ex=assert_raise(Fluent::ConfigError)do
57
57
create_driver(CONFIG + "raise_error yes")
58
58
end
59
-
expected_logs=[
60
-
"#{@time} [warn]: fluent-plugin-tail-multiline is obsolete: Merged in in_tail in Fluentd v0.10.45. [fluent/fluentd#269](https://github.com/fluent/fluentd/issues/269)\n",
61
-
"#{@time} [warn]: fluent-plugin-hostname is obsolete: Use [filter\\_record\\_transformer](http://docs.fluentd.org/v0.12/articles/filter_record_transformer) instead.\n"
0 commit comments