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

Increase data size for test_checkpoint04.py

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc8, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage - Ra 2020-06-01

      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.

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

              Created:
              Updated:
              Resolved: