From 4dd011699be3937eb60346711a254764461ed06d Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Fri, 19 Jul 2024 15:25:48 +0100 Subject: [PATCH] prettier --- .../teku/cli/options/P2POptionsTest.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/teku/src/test/java/tech/pegasys/teku/cli/options/P2POptionsTest.java b/teku/src/test/java/tech/pegasys/teku/cli/options/P2POptionsTest.java index dc8739c78e3..0acf1d5096f 100644 --- a/teku/src/test/java/tech/pegasys/teku/cli/options/P2POptionsTest.java +++ b/teku/src/test/java/tech/pegasys/teku/cli/options/P2POptionsTest.java @@ -18,6 +18,8 @@ import static tech.pegasys.teku.infrastructure.async.AsyncRunnerFactory.DEFAULT_MAX_QUEUE_SIZE_ALL_SUBNETS; import static tech.pegasys.teku.networking.p2p.discovery.DiscoveryConfig.DEFAULT_P2P_PEERS_LOWER_BOUND_ALL_SUBNETS; import static tech.pegasys.teku.networking.p2p.discovery.DiscoveryConfig.DEFAULT_P2P_PEERS_UPPER_BOUND_ALL_SUBNETS; +import static tech.pegasys.teku.networking.p2p.network.config.NetworkConfig.DEFAULT_P2P_PORT; +import static tech.pegasys.teku.networking.p2p.network.config.NetworkConfig.DEFAULT_P2P_PORT_IPV6; import static tech.pegasys.teku.validator.api.ValidatorConfig.DEFAULT_EXECUTOR_MAX_QUEUE_SIZE_ALL_SUBNETS; import java.util.List; @@ -341,18 +343,15 @@ public void defaultPortsAreSetCorrectly() { final TekuConfiguration tekuConfiguration = getTekuConfigurationFromArguments(); final DiscoveryConfig discoveryConfig = tekuConfiguration.discovery(); - assertThat(discoveryConfig.getListenUdpPort()).isEqualTo(NetworkConfig.DEFAULT_P2P_PORT); - assertThat(discoveryConfig.getListenUpdPortIpv6()) - .isEqualTo(NetworkConfig.DEFAULT_P2P_PORT_IPV6); - assertThat(discoveryConfig.getAdvertisedUdpPort()).isEqualTo(NetworkConfig.DEFAULT_P2P_PORT); - assertThat(discoveryConfig.getAdvertisedUdpPortIpv6()) - .isEqualTo(NetworkConfig.DEFAULT_P2P_PORT_IPV6); + assertThat(discoveryConfig.getListenUdpPort()).isEqualTo(DEFAULT_P2P_PORT); + assertThat(discoveryConfig.getListenUpdPortIpv6()).isEqualTo(DEFAULT_P2P_PORT_IPV6); + assertThat(discoveryConfig.getAdvertisedUdpPort()).isEqualTo(DEFAULT_P2P_PORT); + assertThat(discoveryConfig.getAdvertisedUdpPortIpv6()).isEqualTo(DEFAULT_P2P_PORT_IPV6); final NetworkConfig networkConfig = tekuConfiguration.network(); - assertThat(networkConfig.getListenPort()).isEqualTo(NetworkConfig.DEFAULT_P2P_PORT); - assertThat(networkConfig.getListenPortIpv6()).isEqualTo(NetworkConfig.DEFAULT_P2P_PORT_IPV6); - assertThat(networkConfig.getAdvertisedPort()).isEqualTo(NetworkConfig.DEFAULT_P2P_PORT); - assertThat(networkConfig.getAdvertisedPortIpv6()) - .isEqualTo(NetworkConfig.DEFAULT_P2P_PORT_IPV6); + assertThat(networkConfig.getListenPort()).isEqualTo(DEFAULT_P2P_PORT); + assertThat(networkConfig.getListenPortIpv6()).isEqualTo(DEFAULT_P2P_PORT_IPV6); + assertThat(networkConfig.getAdvertisedPort()).isEqualTo(DEFAULT_P2P_PORT); + assertThat(networkConfig.getAdvertisedPortIpv6()).isEqualTo(DEFAULT_P2P_PORT_IPV6); } }