Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-214

Utilize CouchbaseMock time travel for faster testing

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.4
    • library
    • None

    Description

      The Go SDK uses CouchbaseMock for all of its testing.  There are a few time-specific tests (expiry and touch) which cause testing to take longer than they otherwise would due to needing to sleep wait.  The mock supports time travelling to reduce the need for these kinds of waits.

      Attachments

        For Gerrit Dashboard: GOCBC-214
        # Subject Branch Project Status CR V

        Activity

          Build 5.0.0-3507 contains gocbcore commit 87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4 with commit message:
          GOCBC-214: Replace testing sleeps with time-travel.
          https://github.com/couchbase/gocbcore/commit/87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4

          build-team Couchbase Build Team added a comment - Build 5.0.0-3507 contains gocbcore commit 87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4 with commit message: GOCBC-214 : Replace testing sleeps with time-travel. https://github.com/couchbase/gocbcore/commit/87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4

          Build 5.0.1-4671 contains gocbcore commit 87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4 with commit message:
          GOCBC-214: Replace testing sleeps with time-travel.
          https://github.com/couchbase/gocbcore/commit/87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4

          build-team Couchbase Build Team added a comment - Build 5.0.1-4671 contains gocbcore commit 87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4 with commit message: GOCBC-214 : Replace testing sleeps with time-travel. https://github.com/couchbase/gocbcore/commit/87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4

          Build 5.1.0-1448 contains gocbcore commit 87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4 with commit message:
          GOCBC-214: Replace testing sleeps with time-travel.
          https://github.com/couchbase/gocbcore/commit/87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4

          build-team Couchbase Build Team added a comment - Build 5.1.0-1448 contains gocbcore commit 87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4 with commit message: GOCBC-214 : Replace testing sleeps with time-travel. https://github.com/couchbase/gocbcore/commit/87fd8b938e0e4b7f77cf86f9c2e9f5ade80a32f4

          People

            brett19 Brett Lawson
            brett19 Brett Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty