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

index_build.js fails with "SyntaxError: redeclaration of let IndexBuildTest" error in parallel test suite

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2020-03-09
    • 25

      A couple tests in jstests/core/ were modified to import the jstests/noPassthrough/libs/build_index.js, a JS test helper for index builds. However, tests in jstests/core/ are also run concurrently in the parallel test suite and the modified tests have been failing in the parallel test suite with the following error:

      SyntaxError: redeclaration of let IndexBuildTest :
      @jstests/noPassthrough/libs/index_build.js:1:1
      @jstests/core/apply_ops_index_collation.js:20:1
      @jstests/core/apply_ops_index_collation.js:15:2
      time<@eval:11:17
      

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

              Created:
              Updated:
              Resolved: