From d61bf58963a7eeafb20df7b750b171d686e00a66 Mon Sep 17 00:00:00 2001 From: apanizo Date: Mon, 14 May 2018 13:46:30 +0200 Subject: [PATCH] WA-238 Fix delay in tests avoiding JEST default error --- src/routes/safe/component/Safe.test.js | 2 +- src/routes/safe/component/Withdrawn/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/safe/component/Safe.test.js b/src/routes/safe/component/Safe.test.js index 719b8db8..7666312c 100644 --- a/src/routes/safe/component/Safe.test.js +++ b/src/routes/safe/component/Safe.test.js @@ -61,7 +61,7 @@ describe('React DOM TESTS > Withdrawn funds from safe', () => { TestUtils.Simulate.submit(form) // fill the form TestUtils.Simulate.submit(form) // confirming data - await sleep(1200) + await sleep(4000) const safeBalance = await getBalanceInEtherOf(address) expect(safeBalance).toBe('0.09') diff --git a/src/routes/safe/component/Withdrawn/index.jsx b/src/routes/safe/component/Withdrawn/index.jsx index 28d41d91..04a39363 100644 --- a/src/routes/safe/component/Withdrawn/index.jsx +++ b/src/routes/safe/component/Withdrawn/index.jsx @@ -34,7 +34,7 @@ class Withdrawn extends React.Component { try { const { safeAddress, userAddress } = this.props await withdrawn(values, safeAddress, userAddress) - await sleep(5000) + await sleep(3500) this.props.fetchDailyLimit(safeAddress) this.setState({ done: true }) } catch (error) {