Increasing time

This commit is contained in:
apanizo 2018-06-20 15:04:12 +02:00
parent 53d1bda918
commit cb721cb6bd
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
// @flow // @flow
jest.setTimeout(45000) jest.setTimeout(60000)

View File

@ -44,7 +44,7 @@ const deploySafe = async (safe: React$Component<{}>, dailyLimit: string, thresho
const web3 = getWeb3() const web3 = getWeb3()
const accounts = await promisify(cb => web3.eth.getAccounts(cb)) const accounts = await promisify(cb => web3.eth.getAccounts(cb))
TestUtils.Simulate.change(fieldOwners, { target: { value: `${numOwners}` } }) TestUtils.Simulate.change(fieldOwners, { target: { value: `${numOwners}` } })
await sleep(800) await sleep(1500)
const inputsExpanded = TestUtils.scryRenderedDOMComponentsWithTag(safe, 'input') const inputsExpanded = TestUtils.scryRenderedDOMComponentsWithTag(safe, 'input')
expect(inputsExpanded.length).toBe((numOwners * 2) + 4) // 2 per owner + name, dailyLimit, confirmations, numOwners expect(inputsExpanded.length).toBe((numOwners * 2) + 4) // 2 per owner + name, dailyLimit, confirmations, numOwners
@ -71,7 +71,7 @@ const deploySafe = async (safe: React$Component<{}>, dailyLimit: string, thresho
// giving some time to the component for updating its state with safe // giving some time to the component for updating its state with safe
// before destroying its context // before destroying its context
await sleep(12000) await sleep(15000)
// THEN // THEN
const deployed = TestUtils.findRenderedDOMComponentWithClass(safe, DEPLOYED_COMPONENT_ID) const deployed = TestUtils.findRenderedDOMComponentWithClass(safe, DEPLOYED_COMPONENT_ID)