WA-238 Fix delay in tests avoiding JEST default error
This commit is contained in:
parent
d66ef07f98
commit
d61bf58963
|
@ -61,7 +61,7 @@ describe('React DOM TESTS > Withdrawn funds from safe', () => {
|
||||||
|
|
||||||
TestUtils.Simulate.submit(form) // fill the form
|
TestUtils.Simulate.submit(form) // fill the form
|
||||||
TestUtils.Simulate.submit(form) // confirming data
|
TestUtils.Simulate.submit(form) // confirming data
|
||||||
await sleep(1200)
|
await sleep(4000)
|
||||||
|
|
||||||
const safeBalance = await getBalanceInEtherOf(address)
|
const safeBalance = await getBalanceInEtherOf(address)
|
||||||
expect(safeBalance).toBe('0.09')
|
expect(safeBalance).toBe('0.09')
|
||||||
|
|
|
@ -34,7 +34,7 @@ class Withdrawn extends React.Component<Props, State> {
|
||||||
try {
|
try {
|
||||||
const { safeAddress, userAddress } = this.props
|
const { safeAddress, userAddress } = this.props
|
||||||
await withdrawn(values, safeAddress, userAddress)
|
await withdrawn(values, safeAddress, userAddress)
|
||||||
await sleep(5000)
|
await sleep(3500)
|
||||||
this.props.fetchDailyLimit(safeAddress)
|
this.props.fetchDailyLimit(safeAddress)
|
||||||
this.setState({ done: true })
|
this.setState({ done: true })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue