Skip to content
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

Fix an unstable test for ack response of out_forward #3313

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

ashie
Copy link
Member

@ashie ashie commented Apr 1, 2021

Which issue(s) this PR fixes:
none

What this PR does / why we need it:
It fixes the following error:

  Error: test: a node supporting responses after stop(ForwardOutputTest): Fluent::Test::Driver::TestTimedOut: Test case timed out with hard limit.
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:201:in `rescue in run_actual'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:196:in `run_actual'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:95:in `run'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base_owner.rb:130:in `run'
  /home/runner/work/fluentd/fluentd/test/plugin/test_out_forward.rb:651:in `block in <class:ForwardOutputTest>'

In addition, add a timeout and an assertion to help investigating on failure/error cases.

Docs Changes:
none

Release Note:
none

@ashie ashie changed the title test: Fix wrong return value of some test doubles Fix an unstable test for ack response of out_forward Apr 1, 2021
It fixes the following error:

  Error: test: a node supporting responses after stop(ForwardOutputTest): Fluent::Test::Driver::TestTimedOut: Test case timed out with hard limit.
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:201:in `rescue in run_actual'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:196:in `run_actual'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:95:in `run'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base_owner.rb:130:in `run'
  /home/runner/work/fluentd/fluentd/test/plugin/test_out_forward.rb:651:in `block in <class:ForwardOutputTest>'

In addition, add a timeout and an assertion to help investigating on
failure/error cases.

Signed-off-by: Takuro Ashie <[email protected]>
@ashie ashie marked this pull request as ready for review April 1, 2021 13:02
@ashie ashie merged commit 6a2852a into master Apr 1, 2021
@ashie ashie deleted the fix-wrong-ack-test branch April 1, 2021 23:59
@ashie
Copy link
Member Author

ashie commented Apr 2, 2021

Hmm, frequency of occurrence is quite reduced but not yet perfect: https://github.com/fluent/fluentd/runs/2250361051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant