Skip to content

Commit

Permalink
assert -> assertTrue
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol committed Dec 2, 2024
1 parent a5a456a commit a40dddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ethexe/contracts/test/Middleware.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ contract MiddlewareTest is Test, POCBaseTest {
assertEq(res.length, 3);
assertEq(res[0], operators[3]);
assertEq(res[1], operators[1]);
assert(res[2] == operators[0] || res[2] == operators[2] || res[2] == operators[4]);
assertTrue(res[2] == operators[0] || res[2] == operators[2] || res[2] == operators[4]);
}

{
address[] memory res = middleware.makeElectionAt(uint48(vm.getBlockTimestamp() - 1), 4);
assertEq(res.length, 4);
assertEq(res[0], operators[3]);
assertEq(res[1], operators[1]);
assert(res[2] == operators[0] || res[2] == operators[2] || res[2] == operators[4]);
assert((res[3] == operators[3] || res[3] == operators[2] || res[3] == operators[4]) && res[3] != res[2]);
assertTrue(res[2] == operators[0] || res[2] == operators[2] || res[2] == operators[4]);
assertTrue((res[3] == operators[3] || res[3] == operators[2] || res[3] == operators[4]) && res[3] != res[2]);
}

{
Expand Down
2 changes: 1 addition & 1 deletion ethexe/contracts/test/Router.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ contract RouterTest is Test {
assertEq(router.validators(), validators);
assertEq(router.signingThresholdPercentage(), 6666);

assert(router.areValidators(validators));
assertTrue(router.areValidators(validators));
}

function test_ping() public {
Expand Down

0 comments on commit a40dddd

Please sign in to comment.