Move fundedAt initialisation to `before` block.
@@ -494,10 +494,6 @@ contract('DepositUtils', (accounts) => {
before(async () => {
depositTerm = await deployed.TBTCConstants.getDepositTerm.call()
- })
-
- beforeEach(async () => {
- await createSnapshot()
// Set Deposit.fundedAt to current block.
const block = await web3.eth.getBlock('latest')
@@ -505,6 +501,10 @@ contract('DepositUtils', (accounts) => {
await testUtilsInstance.setUTXOInfo(prevoutValueBytes, fundedAt, outpoint)
})
+ beforeEach(async () => {
+ await createSnapshot()
+ })
+
afterEach(async () => {
await restoreSnapshot()
})
