make the tests work

This commit is contained in:
Girish Ramakrishnan
2021-06-29 09:44:16 -07:00
parent 31498afe39
commit ea430b255b
11 changed files with 461 additions and 371 deletions

View File

@@ -491,9 +491,9 @@ function syncGroupUsers(externalLdapConfig, progressCallback, callback) {
return callback(null, []);
}
const getAllGroups = util.callbackify(groups.getAll);
const listGroups = util.callbackify(groups.list);
getAllGroups(function (error, result) {
listGroups(function (error, result) {
if (error) return callback(error);
const ldapGroups = result.filter(function (g) { return g.source === 'ldap'; });