Fix possible sporadic test failure
This commit is contained in:
parent
069bdfd2af
commit
4d1762025f
|
@ -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`);
|
||||||
|
|
Loading…
Reference in New Issue