From f4a9b9cba9a0d9b2e8a7cd9ce40bae0494d7db78 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 3 Sep 2019 14:42:49 -0600 Subject: [PATCH] test: rework remove generic protocol constructor --- tests/testmultistream.nim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testmultistream.nim b/tests/testmultistream.nim index b09837f05..826ef7222 100644 --- a/tests/testmultistream.nim +++ b/tests/testmultistream.nim @@ -156,7 +156,7 @@ suite "Multistream select": let seckey = PrivateKey.random(RSA) var peerInfo: PeerInfo peerInfo.peerId = PeerID.init(seckey) - var protocol: LPProtocol = newProtocol(LPProtocol, peerInfo) + var protocol: LPProtocol = new LPProtocol proc testHandler(conn: Connection, proto: string): Future[void] {.async, gcsafe.} = @@ -185,7 +185,7 @@ suite "Multistream select": let seckey = PrivateKey.random(RSA) var peerInfo: PeerInfo peerInfo.peerId = PeerID.init(seckey) - var protocol: LPProtocol = newProtocol(LPProtocol, peerInfo) + var protocol: LPProtocol = new LPProtocol proc testHandler(conn: Connection, proto: string): Future[void] {.async, gcsafe.} = discard @@ -213,7 +213,7 @@ suite "Multistream select": let seckey = PrivateKey.random(RSA) var peerInfo: PeerInfo peerInfo.peerId = PeerID.init(seckey) - var protocol: LPProtocol = newProtocol(LPProtocol, peerInfo) + var protocol: LPProtocol = new LPProtocol proc testHandler(conn: Connection, proto: string): Future[void] {.async, gcsafe.} = discard @@ -233,7 +233,7 @@ suite "Multistream select": let seckey = PrivateKey.random(RSA) var peerInfo: PeerInfo peerInfo.peerId = PeerID.init(seckey) - var protocol: LPProtocol = newProtocol(LPProtocol, peerInfo) + var protocol: LPProtocol = new LPProtocol proc testHandler(conn: Connection, proto: string): Future[void] {.async, gcsafe.} = @@ -273,7 +273,7 @@ suite "Multistream select": let seckey = PrivateKey.random(RSA) var peerInfo: PeerInfo peerInfo.peerId = PeerID.init(seckey) - var protocol: LPProtocol = newProtocol(LPProtocol, peerInfo) + var protocol: LPProtocol = new LPProtocol proc testHandler(conn: Connection, proto: string): Future[void] {.async.} = discard