Removed close gossip command
This commit is contained in:
parent
9f25291c3a
commit
85626d6642
@ -6,7 +6,6 @@ class GossipCommands(IntEnum):
|
||||
PEER_EXCHANGE = auto()
|
||||
STREAM_BLOCKS = auto()
|
||||
PUT_BLOCKS = auto()
|
||||
CLOSE = auto()
|
||||
|
||||
|
||||
def command_to_byte(cmd: GossipCommands):
|
||||
|
@ -60,8 +60,6 @@ def gossip_server():
|
||||
match GossipCommands(cmd):
|
||||
case GossipCommands.PING:
|
||||
writer.write(b'PONG')
|
||||
case GossipCommands.CLOSE:
|
||||
pass
|
||||
case GossipCommands.ANNOUNCE:
|
||||
async def _read_announce():
|
||||
address = await reader.readuntil(b'\n')
|
||||
|
@ -81,7 +81,6 @@ Thread(target=_announce_server, daemon=True).start()
|
||||
class OnionrClientAnnounce(unittest.TestCase):
|
||||
|
||||
def test_client_announce_too_long(self):
|
||||
sleep(1)
|
||||
import onionrplugins
|
||||
|
||||
our_address = "testtransport" * 100
|
||||
@ -100,7 +99,6 @@ class OnionrClientAnnounce(unittest.TestCase):
|
||||
self.assertNotEqual(our_address, reced_address[0])
|
||||
|
||||
def test_client_announce(self):
|
||||
sleep(1)
|
||||
import onionrplugins
|
||||
|
||||
our_address = "testtransport"
|
||||
|
Loading…
Reference in New Issue
Block a user