Skip to content

Commit

Permalink
Change flag restrition on fork testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vreff committed Sep 1, 2023
1 parent 98211bc commit 84562e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/src/v0.8/dev/automation/test/MercuryRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ contract MercuryRegistryTest is Test {

function setUp() public virtual {
// Set owner, and fork Arbitrum Goerli Testnet (chain ID 421613).
// The fork is only used in local testing, as to not disrupt CI. For CI, a mock verifier is used instead.
// The fork is only used with the `FORK_TEST` flag enabeld, as to not disrupt CI. For CI, a mock verifier is used instead.
vm.startPrank(OWNER);
try vm.envBool("CI") returns (bool /* ci */) {
s_verifier = address(new MockVerifierProxy());
} catch {
try vm.envBool("FORK_TEST") returns (bool /* fork testing enabled */) {
vm.selectFork(vm.createFork("https://goerli-rollup.arbitrum.io/rpc"));
} catch {
s_verifier = address(new MockVerifierProxy());
}
vm.chainId(31337); // restore chain Id

Expand Down

0 comments on commit 84562e0

Please sign in to comment.