Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-148

intermittent test failures in MockUnitTest.testPurgedBody

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      Currently, we see intermittent test failures all in the same test from sdk-repo. This has been at least since build #866, and probably earlier.

      http://sdkbuilds.couchbase.com/job/sdk-repo/

      [----------] Global test environment tear-down
      [==========] 80 tests from 17 test cases ran. (49277 ms total)
      [ PASSED ] 79 tests.
      [ FAILED ] 1 test, listed below:
      [ FAILED ] MockUnitTest.testPurgedBody

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        mnunberg Mark Nunberg added a comment -

        The test assumes that the mock server is timely enough, so that the command being sent to the mock is processed within 0.25 seconds.

        The test might fail because of this.

        There's no easy fix for this, other than to make the mock send ACKs to commands, so that we know when the mock has completed the operation.

        https://github.com/couchbase/libcouchbase/blob/master/tests/mock-unit-test.cc#L568

        Show
        mnunberg Mark Nunberg added a comment - The test assumes that the mock server is timely enough, so that the command being sent to the mock is processed within 0.25 seconds. The test might fail because of this. There's no easy fix for this, other than to make the mock send ACKs to commands, so that we know when the mock has completed the operation. https://github.com/couchbase/libcouchbase/blob/master/tests/mock-unit-test.cc#L568

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes