Skip to content

Commit

Permalink
test: don't expect a specific cheatcode error message (#632)
Browse files Browse the repository at this point in the history
There are no stability guarantees about error messages.

This specific error message was changed in
foundry-rs/foundry#9353.
  • Loading branch information
DaniPopes authored Nov 19, 2024
1 parent 0e70977 commit 2b59872
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/StdChains.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ contract StdChainsTest is Test {
StdChainsMock stdChainsMock = new StdChainsMock();

stdChainsMock.exposed_setChain("needs_undefined_env_var", ChainData("", 123456789, ""));
vm.expectRevert(
"Failed to resolve env var `UNDEFINED_RPC_URL_PLACEHOLDER` in `${UNDEFINED_RPC_URL_PLACEHOLDER}`: environment variable not found"
);
// Forge environment variable error.
vm.expectRevert();
stdChainsMock.exposed_getChain("needs_undefined_env_var");
}

Expand Down

0 comments on commit 2b59872

Please sign in to comment.