-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: use Fluent::Config::Element
in test
#4074
Conversation
We should use `Fluent::Config::Element` instead of Hash. Signed-off-by: abetomo <[email protected]>
Whether we should merge this or not depends on the discussion in #4066 (comment) |
Sorry for the delay, yes I think so too. I'm considering #4066's goal. |
Our conclusion in the discussion is #4066 (comment)
So we'll merge this. |
Thanks! |
@@ -135,7 +139,7 @@ def setup | |||
end | |||
|
|||
def test_format | |||
@formatter.configure({}) | |||
@formatter.configure(config_element()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is the one we should use Fluent::Test::FormatterTestDriver
for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry I've already merged this although you are right...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem! I'm making another PR for this now!
Which issue(s) this PR fixes:
( #4066 (comment) )
What this PR does / why we need it:
There is a case where
Hash
is used in the test ofconfigure
method.I fixed it because
configure
method should useFluent::Config::Element
.Docs Changes:
Release Note: