Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
princetonbishop committed Nov 14, 2023
1 parent 0335597 commit e5d687b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions protocol/test/forge/nexus/NexusCommon.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ contract NexusCommonTest is NexusCommonTestBase {

assertEq(nexusCommon.enclaveNames(1), MYSTERY);

vm.expectEmit(address(nexusCommon));
vm.expectEmit();
emit EnclaveNameSet(2, CHAOS);
vm.expectEmit(address(nexusCommon));
emit EnclaveNameSet(3, ORDER);
nexusCommon.setEnclaveName(2, CHAOS);
vm.expectEmit();
emit EnclaveNameSet(3, ORDER);
nexusCommon.setEnclaveName(3, ORDER);

assertEq(nexusCommon.enclaveNames(2), CHAOS);
Expand Down
2 changes: 1 addition & 1 deletion protocol/test/forge/nexus/PartnerZeroSacrifice.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ contract PartnerSacrificeAccessTest is PartnerZeroSacrificeTestBase {
}

function test_access_sacrificeFail(address caller) public {
vm.assume(caller != executor);
vm.assume(caller != executor && caller != address(mockPartnerProxy));
vm.startPrank(caller);
vm.expectRevert(abi.encodeWithSelector(CommonEventsAndErrors.InvalidAccess.selector));
partnerSacrifice.sacrifice(NON_ENCLAVE_ID, alice);
Expand Down

0 comments on commit e5d687b

Please sign in to comment.