list_local_sessions.js should be made paralle suite aware

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Platforms 2017-10-02
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If list_all_local_sessions.js and list_all_local_sessions.js run in parallel, a check in list_all_local_sessions.js may fail.

          function listMyLocalSessions() {
              return db.aggregate([{'$listLocalSessions': {users: [myusername]}}]);
          }
          const myArray = assert.doesNotThrow(listMyLocalSessions).toArray();
          assert.eq(myArray.length, resultArray.length);
      

      Other tests may use the same user, because a value is needed in the no-auth case. This check should be made aware of this possibility.

            Assignee:
            Sara Golemon (Inactive)
            Reporter:
            Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: