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

test_out_exec: Try to fix a randomly failed test #3574

Merged
merged 1 commit into from
Dec 21, 2021

Commits on Dec 20, 2021

  1. test_out_exec: Try to fix a randomly failed test

    e.g.) https://cloud.drone.io/fluent/fluentd/1934/1/2
    
    Failure: test: flushed chunk will be committed after child process successfully exits(ExecOutputTest::when executed process dies unexpectedly)
    /drone/src/test/plugin/test_out_exec.rb:279:in `block (2 levels) in <class:ExecOutputTest>'
         276:       expect_data =
         277:         %[2011-01-02 13:14:15\ttest\tv1\n] +
         278:         %[2011-01-02 13:14:15\ttest\tv2\n]
      => 279:       assert_equal expect_data, data
         280:
         281:       assert{ d.instance.buffer.queue.empty? }
         282:       assert{ d.instance.dequeued_chunks.empty? }
    <"2011-01-02 13:14:15\ttest\tv1\n" + "2011-01-02 13:14:15\ttest\tv2\n">(UTF-8) expected but was
    <"">(ASCII-8BIT)
    
    diff:
    - 2011-01-02 13:14:15	test	v1
    - 2011-01-02 13:14:15	test	v2
    
    ? Encoding: UTF  -8
    ?           ASCII  BIT
    ?           ???  +++
    
    Although `wait_flush_completion: false` was specified, it seems that the
    test expects flushing the buffer.
    
    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    6a8af90 View commit details
    Browse the repository at this point in the history