Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Platforms 2017-10-02
-
0
Description
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.