From ef7a0b41e48e5cc7ec5006006b3dff69b34bf4cb Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sat, 31 Aug 2019 16:25:21 -0600 Subject: [PATCH] add switch tests to native --- libp2p/identify.nim | 2 -- tests/testnative.nim | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libp2p/identify.nim b/libp2p/identify.nim index 084e4be23..c159bf68b 100644 --- a/libp2p/identify.nim +++ b/libp2p/identify.nim @@ -68,7 +68,6 @@ proc decodeMsg*(buf: seq[byte]): IdentifyInfo = address.setLen(0) var proto = "" - # var protos: seq[string] = newSeq[string]() while pb.getString(3, proto) > 0: result.protos.add(proto) proto = "" # TODO: do i need to clear it up? @@ -78,7 +77,6 @@ proc decodeMsg*(buf: seq[byte]): IdentifyInfo = result.observedAddr = MultiAddress.init(observableAddr) discard pb.getString(5, result.protoVersion) - discard pb.getString(6, result.agentVersion) method init*(p: Identify) = diff --git a/tests/testnative.nim b/tests/testnative.nim index 38c48f116..0110a3d28 100644 --- a/tests/testnative.nim +++ b/tests/testnative.nim @@ -2,4 +2,4 @@ import unittest import testvarint, testbase32, testbase58, testbase64 import testrsa, testecnist, tested25519, testsecp256k1, testcrypto import testmultibase, testmultihash, testmultiaddress, testcid, testpeer -import testidentify, testtransport, testmultistream +import testidentify, testtransport, testmultistream, testswitch