Track ChronosStream in test (#605)
* track chronos stream in tests * use chronosstreamtrackername
This commit is contained in:
parent
008dcf7043
commit
c1b2d45d1b
|
@ -45,7 +45,7 @@ chronicles.formatIt(ChronosStream): shortLog(it)
|
||||||
|
|
||||||
method initStream*(s: ChronosStream) =
|
method initStream*(s: ChronosStream) =
|
||||||
if s.objName.len == 0:
|
if s.objName.len == 0:
|
||||||
s.objName = "ChronosStream"
|
s.objName = ChronosStreamTrackerName
|
||||||
|
|
||||||
s.timeoutHandler = proc() {.async, gcsafe.} =
|
s.timeoutHandler = proc() {.async, gcsafe.} =
|
||||||
trace "Idle timeout expired, closing ChronosStream", s
|
trace "Idle timeout expired, closing ChronosStream", s
|
||||||
|
|
|
@ -6,6 +6,7 @@ import ../libp2p/transports/tcptransport
|
||||||
import ../libp2p/stream/bufferstream
|
import ../libp2p/stream/bufferstream
|
||||||
import ../libp2p/crypto/crypto
|
import ../libp2p/crypto/crypto
|
||||||
import ../libp2p/stream/lpstream
|
import ../libp2p/stream/lpstream
|
||||||
|
import ../libp2p/stream/chronosstream
|
||||||
import ../libp2p/muxers/mplex/lpchannel
|
import ../libp2p/muxers/mplex/lpchannel
|
||||||
import ../libp2p/protocols/secure/secure
|
import ../libp2p/protocols/secure/secure
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ const
|
||||||
BufferStreamTrackerName,
|
BufferStreamTrackerName,
|
||||||
TcpTransportTrackerName,
|
TcpTransportTrackerName,
|
||||||
StreamTransportTrackerName,
|
StreamTransportTrackerName,
|
||||||
|
ChronosStreamTrackerName,
|
||||||
StreamServerTrackerName
|
StreamServerTrackerName
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue