Clean up old comments, print stmts, formatting, etc.

This commit is contained in:
Alex Stokes 2019-08-02 21:54:28 -07:00
parent cff5fe0d5f
commit 6090d2ca3b
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
4 changed files with 0 additions and 9 deletions

View File

@ -17,8 +17,6 @@ async def test_example():
await node_b.provide("hello")
providers = await node_b.get_providers("hello")
# print ("providers")
# print (providers)
# bmuller's handle_call_response wraps
# every rpc call result in a list of tuples

View File

@ -12,7 +12,6 @@ features are implemented in swarm
import pytest
import multiaddr
from tests.utils import (
cleanup,
echo_stream_handler,

View File

@ -21,10 +21,7 @@ async def perform_simple_test(
async def stream_handler(stream):
while True:
read_string = (await stream.read()).decode()
print("host B received:" + read_string)
response = "ack:" + read_string
print("sending response:" + response)
await stream.write(response.encode())
for protocol in protocols_with_handlers:
@ -40,7 +37,6 @@ async def perform_simple_test(
response = (await stream.read()).decode()
print("res: " + response)
assert response == ("ack:" + message)
assert expected_selected_protocol == stream.get_protocol()

View File

@ -19,8 +19,6 @@ async def test_simple_two_nodes():
router = KadmeliaPeerRouter(node_b)
returned_info = await router.find_peer(ID(node_a_kad_peerinfo.peer_id_bytes))
print(repr(returned_info))
print(repr(node_a_kad_peerinfo))
assert repr(returned_info) == repr(node_a_kad_peerinfo)