Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6297

Increase data size for test_checkpoint04.py

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.2, 4.5.1, 4.4.0-rc8
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Storage - Ra 2020-06-01

      Description

      One of my PRs failed on Windows in test_checkpoint04.py with:

      [2020/05/21 20:13:50.715] ======================================================================
      [2020/05/21 20:13:50.715] FAIL: test_checkpoint04.test_checkpoint04.test_checkpoint_stats
      [2020/05/21 20:13:50.715] ----------------------------------------------------------------------
      [2020/05/21 20:13:50.715] Traceback (most recent call last):
      [2020/05/21 20:13:50.715]   File "C:\data\mci\aa021dc9995f8f691da1fbcbeab1aa67\wiredtiger\test\suite\test_checkpoint04.py", line 124, in test_checkpoint_stats
      [2020/05/21 20:13:50.715]     self.assertLess(prep_min, time_min)
      [2020/05/21 20:13:50.715] AssertionError: 0 not less than 0
      [2020/05/21 20:13:50.715] ----------------------------------------------------------------------
      

      The test assumes the time needed is measurable and Windows often has very coarse timings.

              self.assertLess(prep_min, time_min)
              self.assertLess(prep_max, time_max)
              self.assertLess(prep_recent, time_recent)
              self.assertLess(prep_total, time_total)
      

      These should either accept assertLessEqual or specifically check for 0.

        Attachments

          Activity

            People

            Assignee:
            ravi.giri Ravi Giri
            Reporter:
            sue.loverso Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: