Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansaleem committed Nov 27, 2024
1 parent ead76ae commit 420aae7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class AllowedAddressValidatorTest {
@BeforeEach
public void initialize() {
Set<Address> denied = Set.of(DENIED);
allowedAddressValidator = new AllowedAddressValidator(denied, Optional.empty());
allowedAddressValidator = new AllowedAddressValidator(denied);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public void initialize() {
new CalldataValidator(
LineaTransactionPoolValidatorCliOptions.create().toDomainObject().toBuilder()
.maxTxCalldataSize(MAX_TX_CALLDATA_SIZE)
.build(),
Optional.empty());
.build());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public void initialize() {
new GasLimitValidator(
LineaTransactionPoolValidatorCliOptions.create().toDomainObject().toBuilder()
.maxTxGasLimit(MAX_TX_GAS_LIMIT)
.build(),
Optional.empty());
.build());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ public void initialize() {
profitabilityConfBuilder
.txPoolCheckP2pEnabled(true)
.txPoolCheckApiEnabled(true)
.build(),
Optional.empty());
.build());

profitabilityValidatorNever =
new ProfitabilityValidator(
Expand All @@ -97,8 +96,7 @@ public void initialize() {
profitabilityConfBuilder
.txPoolCheckP2pEnabled(false)
.txPoolCheckApiEnabled(false)
.build(),
Optional.empty());
.build());

profitabilityValidatorOnlyApi =
new ProfitabilityValidator(
Expand All @@ -107,8 +105,7 @@ public void initialize() {
profitabilityConfBuilder
.txPoolCheckP2pEnabled(false)
.txPoolCheckApiEnabled(true)
.build(),
Optional.empty());
.build());

profitabilityValidatorOnlyP2p =
new ProfitabilityValidator(
Expand All @@ -117,8 +114,7 @@ public void initialize() {
profitabilityConfBuilder
.txPoolCheckP2pEnabled(true)
.txPoolCheckApiEnabled(false)
.build(),
Optional.empty());
.build());
}

@Test
Expand Down

0 comments on commit 420aae7

Please sign in to comment.