Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5568

bson-transpilers tests attempt to pass arguments to shell's Date() function

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Export to Language
    • None
    • Iteration Isopod, Iteration Jellyfish, Iteration Lobster

      Problem Statement/Rationale

      There are several tests in native.yaml which pass arguments to the shell's Date() function, but that function does not accept any arguments and will always return the current datetime as a string.

      > Date()
      Mon Mar 07 2022 16:58:26 GMT-0500 (EST)
      > Date("Sun, 17 Dec 1995 02:24:00 GMT")
      Mon Mar 07 2022 16:58:38 GMT-0500 (EST)
      > Date(819167040000)
      Mon Mar 07 2022 16:58:46 GMT-0500 (EST)
      

      These tests need to be updated or removed.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: