e2e:improve stability#8

This commit is contained in:
dennistikhomirov 2018-10-23 16:03:40 -07:00
parent ac8aa781b7
commit e6e76babee
1 changed files with 4 additions and 7 deletions

View File

@ -1809,8 +1809,7 @@ describe('Metamask popup page', async function () {
} }
} }
async function waitUntilCurrentUrl() async function waitUntilCurrentUrl () {
{
try { try {
let title let title
let counter = 20 let counter = 20
@ -1820,9 +1819,7 @@ describe('Metamask popup page', async function () {
} while ((title === '') && (counter-- > 0)) } while ((title === '') && (counter-- > 0))
if (counter < 1) return false if (counter < 1) return false
return title return title
} } catch (err) {
catch(err)
{
console.log(err) console.log(err)
return false return false
} }