Skip to content

Commit

Permalink
feat: update to forge test
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Oct 4, 2023
1 parent ddf202f commit 0724fc3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "lib/ds-test"]
path = lib/ds-test
url = https://github.com/dapphub/ds-test
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
1 change: 0 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
src = 'src'
out = 'out'
libs = ['lib']
remappings = ['ds-test/=lib/ds-test/src/']
1 change: 0 additions & 1 deletion lib/ds-test
Submodule ds-test deleted from 9310e8
5 changes: 3 additions & 2 deletions src/test/ExcessivelySafeCall.t.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.7.6;

import "ds-test/test.sol";
import {Test} from "forge-std/Test.sol";
import "src/ExcessivelySafeCall.sol";

contract ContractTest is DSTest {
contract ContractTest is Test {
using ExcessivelySafeCall for address;

address target;
Expand Down Expand Up @@ -180,6 +180,7 @@ contract ContractTest is DSTest {
}

function test_drain() public {
vm.expectRevert();
intermediary.getDrained{gas: 1_000_000}(target, 10_000);
}

Expand Down

0 comments on commit 0724fc3

Please sign in to comment.