Merge bitcoin/bitcoin#26546: test: remove unused class NodePongAdd1
40bdc8a6e4test: remove unused class `NodePongAdd1` (Sebastian Falbesoner) Pull request description: This class was introduced in commitfa3365430c("net: Use mockable time for ping/pong, add tests"), but actually never used. ACKs for top commit: stickies-v: ACK40bdc8a6eTree-SHA512: b5a6552e4f2e0b7e368a071cc53b9a8e6f5d1950565a9fda8eb1971a01d8be0541d066842723ef44174fe8189925fa36f2defb6d7bf8d104abc77de410cc4c13
This commit is contained in:
1 file changed
+2
-8
@@ -12,7 +12,9 @@ from test_framework.p2p import P2PInterface
|
|||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import assert_equal
|
from test_framework.util import assert_equal
|
||||||
|
|
||||||
|
|
||||||
PING_INTERVAL = 2 * 60
|
PING_INTERVAL = 2 * 60
|
||||||
|
TIMEOUT_INTERVAL = 20 * 60
|
||||||
|
|
||||||
|
|
||||||
class msg_pong_corrupt(msg_pong):
|
class msg_pong_corrupt(msg_pong):
|
||||||
@@ -20,19 +22,11 @@ class msg_pong_corrupt(msg_pong):
|
|||||||
return b""
|
return b""
|
||||||
|
|
||||||
|
|
||||||
class NodePongAdd1(P2PInterface):
|
|
||||||
def on_ping(self, message):
|
|
||||||
self.send_message(msg_pong(message.nonce + 1))
|
|
||||||
|
|
||||||
|
|
||||||
class NodeNoPong(P2PInterface):
|
class NodeNoPong(P2PInterface):
|
||||||
def on_ping(self, message):
|
def on_ping(self, message):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
TIMEOUT_INTERVAL = 20 * 60
|
|
||||||
|
|
||||||
|
|
||||||
class PingPongTest(BitcoinTestFramework):
|
class PingPongTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
|
|||||||
Reference in new issue
Block a user