Skip to content

Commit

Permalink
fix: cluster connection test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju committed Nov 29, 2024
1 parent 47c6ddd commit fa371d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/evm/test/adapters/ClusterConnection.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ contract ClusterConnectionTest is Test {
}

function testSetAdmin() public {
vm.prank(source_relayer);
vm.prank(owner);
adapterSource.setAdmin(user);
assertEq(adapterSource.admin(), user);
}

function testSetAdminUnauthorized() public {
vm.prank(user);
vm.expectRevert("OnlyRelayer");
vm.expectRevert("OnlyAdmin");
adapterSource.setAdmin(user);
}

Expand Down Expand Up @@ -328,10 +328,10 @@ contract ClusterConnectionTest is Test {
adapterTarget.updateValidators(validators, 2);
vm.stopPrank();
vm.startPrank(destination_relayer);
vm.expectRevert("Not enough valid signatures passed");
bytes[] memory signatures = new bytes[](2) ;
signatures[0] = signMessage(pk,hash);
signatures[1] = signMessage(pk,hash);
vm.expectRevert("Not enough valid signatures passed");
adapterTarget.recvMessageWithSignatures(
nidSource,
1,
Expand Down

0 comments on commit fa371d6

Please sign in to comment.