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

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


The following commit(s) were added to refs/heads/1.4 by this push:
     new 25d3022  fix tests
25d3022 is described below

commit 25d302235c46c1af2b1c86cb0d7c8576206ebe73
Author: Antoine Toulme <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to