Skip to content

Commit

Permalink
fix: change test title as foundry expect that testFail* tests that …
Browse files Browse the repository at this point in the history
…revert
  • Loading branch information
ncoquelet committed Dec 10, 2024
1 parent 2b82de0 commit 5a55aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onchain/solidity_contracts/test/Pump.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ contract PumpLaunchTest is Test {
// assertEq(amountOwned, 20 * 10**18); // 50 bought initially - 30 sold
}

function testFailSellTokenNoInit() public {
function testSellTokenNoInitFailed() public {
// Attempt to sell tokens without balance should fail
vm.expectRevert();
vm.prank(user);
pumpLaunch.sellToken(address(testToken), 10 * 10**18);
}


function testFailSellTokenWithoutBalance() public {
function testSellTokenWithoutBalanceFailed() public {

// Admin launches token
vm.prank(admin);
Expand Down

0 comments on commit 5a55aee

Please sign in to comment.