diff --git a/core/test/Acre.test.ts b/core/test/Acre.test.ts index 776dea47a..4a5b97620 100644 --- a/core/test/Acre.test.ts +++ b/core/test/Acre.test.ts @@ -924,11 +924,17 @@ describe("Acre", () => { describe("deposit", () => { let amountToDeposit: bigint let minimumDepositAmount: bigint + let snapshot: SnapshotRestorer beforeEach(async () => { + snapshot = await takeSnapshot() minimumDepositAmount = await acre.minimumDepositAmount() }) + afterEach(async () => { + await snapshot.restore() + }) + context("when the deposit amount is less than minimum", () => { beforeEach(() => { amountToDeposit = minimumDepositAmount - 1n