Fix possible sporadic test failure

This commit is contained in:
blagoev 2017-09-12 11:21:15 +03:00
parent 069bdfd2af
commit 4d1762025f
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ module.exports = {
return createUsersWithTestRealms(1) return createUsersWithTestRealms(1)
.then(([user]) => { .then(([user]) => {
return user.applyPermissions({ userId: '*' }, `/${user.identity}/test`, 'read') return user.applyPermissions({ userId: '*' }, `/${user.identity}/test`, 'read')
.then(wait(100))
.then(() => user.getGrantedPermissions('any')) .then(() => user.getGrantedPermissions('any'))
.then(permissions => { .then(permissions => {
TestCase.assertEqual(permissions[1].path, `/${user.identity}/test`); TestCase.assertEqual(permissions[1].path, `/${user.identity}/test`);