Correct the order of operations in test_timestamp09.py

XMLWordPrintableJSON

    • None
    • None

      In Python test test_timestamp09.py, the order of statements in one of the tests appears to be incorrect.

      At line 49 (see code below), the c[1] = 1 code should be between the begin and commit transaction calls, rather than afterwards.

      # Begin by adding some data.
      self.session.begin_transaction()
      self.session.commit_transaction(
          'commit_timestamp=' + self.timestamp_str(1))
      c[1] = 1

      As the above code does not check that any data has been successfully added, there is no error generated. 

      Definition of done:

      • The  c[1] = 1  code is between the begin and commit calls.

       

              Assignee:
              Keith Bostic (Inactive)
              Reporter:
              Jeremy Thorp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: