Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1112

Intermittent fail in test_document_expiry_values

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • .backlog3.x
    • None
    • None
    • None
    • 1

    Description

      The failure was not reproducible, but occurs at the comparison on line 480 of collection_t.py. This test really tries to do too much in a single test. Lets split it into multiple, simpler tests that individually test the 50 years vs 30 days, etc...

      Also - possibly the issue comes down to how we get the expiry back from the server. When you ask the server to expire in 10 seconds, it makes it expire 10 seconds from when it was asked, according to the server's time, and I believe it rounds it up to the next second, rather than some 10 seconds from exactly now. This makes comparisons a bit tricky, you need a little range in those comparisons. The now and/or then variables are likely slightly problematic (note the +1 and -1).

      Attachments

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

        Activity

          People

            jared.casey Jared Casey
            david.kelly David Kelly (Inactive)
            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