Skip to content

Commit

Permalink
TestFluentdCommand: Make timeout longer
Browse files Browse the repository at this point in the history
On Windows, sometimes 10s is too short and can't take some logs to assert.

Signed-off-by: Daijiro Fukuda <[email protected]>
  • Loading branch information
daipom committed Mar 14, 2023
1 parent c531b73 commit 86e1cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/command/test_fluentd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def eager_read(io)

# ATTENTION: This stops taking logs when all `pattern_list` match or timeout,
# so `patterns_not_match` can test only logs up to that point.
def assert_log_matches(cmdline, *pattern_list, patterns_not_match: [], timeout: 10, env: {})
def assert_log_matches(cmdline, *pattern_list, patterns_not_match: [], timeout: 20, env: {})
matched = false
matched_wrongly = false
assert_error_msg = ""
Expand Down Expand Up @@ -209,7 +209,7 @@ def assert_log_matches(cmdline, *pattern_list, patterns_not_match: [], timeout:
assert matched && !matched_wrongly, assert_error_msg
end

def assert_fluentd_fails_to_start(cmdline, *pattern_list, timeout: 10)
def assert_fluentd_fails_to_start(cmdline, *pattern_list, timeout: 20)
# empty_list.all?{ ... } is always true
matched = false
running = false
Expand Down

0 comments on commit 86e1cea

Please sign in to comment.