mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-18 17:47:32 +00:00
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…
x
Reference in New Issue
Block a user