mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
test: remove unused class NodePongAdd1
This class was introduced in commit
fa3365430c
("net: Use mockable time for
ping/pong, add tests"), but actually never used.
This commit is contained in:
parent
df2f16666c
commit
40bdc8a6e4
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue