Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69783

use integral type for TTL index test case in ttl_index_options.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0, 6.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Execution Team 2022-10-03
    • 8

      The epoch test case in ttl_index_options.js uses a floating point value for the expireAfterSeconds, which should really be an integer. Even though current server semantics accept floating point values, we should update the test to use an integral type. To maintain existing test coverage, we could add a test case in to the unit test for index_key_validate::validateExpireAfterSeconds()

      We could also revisit our current validation on numeric types in this ticket or in SERVER-69091.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: