add switch tests to native

This commit is contained in:
Dmitriy Ryajov 2019-08-31 16:25:21 -06:00
parent 0f3d024c0a
commit ef7a0b41e4
2 changed files with 1 additions and 3 deletions

View File

@ -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) =

View File

@ -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