Skip to content

Commit 1c641ff

Browse files
committed
fix failure in DefaultDiscoveryV5ServiceTest about reusing ports
Signed-off-by: Luis Pinto <[email protected]>
1 parent 279acd6 commit 1c641ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

devp2p/src/test/kotlin/org/apache/tuweni/v2/devp2p/v5/DefaultDiscoveryV5ServiceTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ class DefaultDiscoveryV5ServiceTest {
2828

2929
private val recipientKeyPair: SECP256K1.KeyPair = SECP256K1.KeyPair.random()
3030
private val recipientEnr: Bytes =
31-
EthereumNodeRecord.toRLP(recipientKeyPair, ip = InetAddress.getLoopbackAddress(), udp = 19001)
31+
EthereumNodeRecord.toRLP(recipientKeyPair, ip = InetAddress.getLoopbackAddress(), udp = 19003)
3232
private val encodedEnr: String = "enr:${Base64URLSafe.encode(recipientEnr)}"
3333
private val keyPair: SECP256K1.KeyPair = SECP256K1.KeyPair.random()
34-
private val localPort: Int = 19000
34+
private val localPort: Int = 19002
3535
private val bootstrapENRList: List<String> = listOf(encodedEnr)
3636

3737
@Test
3838
fun startInitializesConnectorAndBootstraps(@VertxInstance vertx: Vertx): Unit = runBlocking {
3939
val reference = AsyncResult.incomplete<Buffer>()
4040
val client = vertx.createDatagramSocket().handler { res ->
4141
reference.complete(res.data())
42-
}.listen(19001, "localhost").coAwait()
42+
}.listen(19003, "localhost").coAwait()
4343
val discoveryV5Service: DiscoveryV5Service =
4444
DiscoveryService.open(
4545
vertx,

0 commit comments

Comments
 (0)