Skip to content

Commit

Permalink
βœ… πŸ“š isAuctionReady
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Oct 25, 2024
1 parent 55b6342 commit 9774bf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/KSXVault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ contract KSXVaultDepositMintTest is KSXVaultTest {

contract KSXVaultAuctionTest is KSXVaultTest {

function test_auctionReady() public {
function test_isAuctionReady() public {
vm.warp(DEFAULT_START_TIME);
assertEq(ksxVault.isAuctionReady(), false);

Expand All @@ -132,7 +132,7 @@ contract KSXVaultAuctionTest is KSXVaultTest {
assertEq(ksxVault.isAuctionReady(), true);
}

// function test_auctionReady_next_week() public {
// function test_isAuctionReady_next_week() public {
// assertEq(ksxVault.isAuctionReady(), false);
// assertEq(block.timestamp, 1);
// vm.warp(block.timestamp + 1 weeks - 2);
Expand All @@ -149,7 +149,7 @@ contract KSXVaultAuctionTest is KSXVaultTest {
// }

/// @notice test isAuctionReady reverts until the startTime
function test_auctionReady_before_start() public {
function test_isAuctionReady_before_start() public {
uint256 bootstrapStartTime = block.timestamp;
assertEq(bootstrapStartTime, 1);
vm.expectRevert();
Expand All @@ -166,7 +166,7 @@ contract KSXVaultAuctionTest is KSXVaultTest {
}

/// @notice test isAuctionReady reverts until the startTime
function test_auctionReady_before_start_fuzz(uint128 time) public {
function test_isAuctionReady_before_start_fuzz(uint128 time) public {
/// @dev using lastAuctionStartTime to get the startTime because
/// startTime is private
uint256 timeBeforeInitialStart = ksxVault.lastAuctionStartTime() - block.timestamp;
Expand Down

0 comments on commit 9774bf9

Please sign in to comment.