You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2021/05/26 07:50:52 UTC

[incubator-tuweni] branch main updated: fix tests

This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/main by this push:
     new 33b10a2  fix tests
33b10a2 is described below

commit 33b10a2eb445dca449e7d72f638cee47a7cc6120
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Tue May 25 23:04:57 2021 -0700

    fix tests
---
 .../tuweni/ethclient/WireConnectionPeerRepositoryAdapterTest.kt       | 4 ++--
 .../test/kotlin/org/apache/tuweni/les/LESSubProtocolHandlerTest.kt    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/eth-client/src/test/kotlin/org/apache/tuweni/ethclient/WireConnectionPeerRepositoryAdapterTest.kt b/eth-client/src/test/kotlin/org/apache/tuweni/ethclient/WireConnectionPeerRepositoryAdapterTest.kt
index b7b6bd9..487480e 100644
--- a/eth-client/src/test/kotlin/org/apache/tuweni/ethclient/WireConnectionPeerRepositoryAdapterTest.kt
+++ b/eth-client/src/test/kotlin/org/apache/tuweni/ethclient/WireConnectionPeerRepositoryAdapterTest.kt
@@ -47,7 +47,7 @@ class WireConnectionPeerRepositoryAdapterTest {
       on { peerHost() } doReturn("example.com")
       on { peerPort() } doReturn(1234)
       on { peerPublicKey() } doReturn(pubKey)
-      on { uri() }.thenCallRealMethod()
+      on { uri() }.doReturn("foo")
     }
 
     connRepo.add(conn)
@@ -69,7 +69,7 @@ class WireConnectionPeerRepositoryAdapterTest {
       on { peerHost() } doReturn("example.com")
       on { peerPort() } doReturn(1234)
       on { peerPublicKey() } doReturn(pubKey)
-      on { uri() }.thenCallRealMethod()
+      on { uri() }.doReturn("foo")
     }
     val id = connRepo.add(conn)
     assertEquals(conn, connRepo[id])
diff --git a/les/src/test/kotlin/org/apache/tuweni/les/LESSubProtocolHandlerTest.kt b/les/src/test/kotlin/org/apache/tuweni/les/LESSubProtocolHandlerTest.kt
index abe81d9..d2a50a5 100644
--- a/les/src/test/kotlin/org/apache/tuweni/les/LESSubProtocolHandlerTest.kt
+++ b/les/src/test/kotlin/org/apache/tuweni/les/LESSubProtocolHandlerTest.kt
@@ -178,7 +178,7 @@ internal class LESSubProtocolHandlerTest {
       on { peerHost() } doReturn UUID.randomUUID().toString()
       on { peerPort() } doReturn 1
       on { peerPublicKey() } doReturn key
-      on { uri() }.thenCallRealMethod()
+      on { uri() }.thenReturn("foo")
     }
   }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org