Skip to content

Commit

Permalink
test(escrow-contract): update test for new thaw functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Cole <[email protected]>
  • Loading branch information
ColePBryan committed Aug 18, 2023
1 parent fed5fbb commit ef5b043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Escrow.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ contract EscrowContractTest is Test {

// Cancel thaw and attempt to withdraw (expect revert)
vm.startPrank(SENDER_ADDRESS);
escrowContract.cancelThaw(receiverAddress);
escrowContract.thaw(receiverAddress, 0);

uint256 senderBalanceBeforeWithdraw = mockERC20.balanceOf(SENDER_ADDRESS);
vm.expectRevert(Escrow.EscrowNotThawing.selector);
Expand Down Expand Up @@ -235,6 +235,7 @@ contract EscrowContractTest is Test {

// Simulate passing partial freeze period
vm.warp(block.timestamp + partialFreezePeriod);
partialEscrowAmount += ESCROW_AMOUNT / 10;
}

// expected to revert because not enough time has passed since the last thaw request
Expand Down

0 comments on commit ef5b043

Please sign in to comment.