mirror of
https://github.com/logos-storage/nim-libp2p.git
synced 2026-01-04 06:33:10 +00:00
avoid verbose EOF messages in readOnce(secure) (#411)
* avoid verbose EOF messages in readOnce(secure) * shorten azure tests further
This commit is contained in:
parent
9c58356823
commit
5c19668b2d
@ -58,7 +58,6 @@ task testpubsub, "Runs pubsub tests":
|
|||||||
task testpubsub_slim, "Runs pubsub tests":
|
task testpubsub_slim, "Runs pubsub tests":
|
||||||
runTest("pubsub/testgossipinternal", sign = false, verify = false, moreoptions = "-d:pubsub_internal_testing")
|
runTest("pubsub/testgossipinternal", sign = false, verify = false, moreoptions = "-d:pubsub_internal_testing")
|
||||||
runTest("pubsub/testpubsub")
|
runTest("pubsub/testpubsub")
|
||||||
runTest("pubsub/testpubsub", sign = false, verify = false, moreoptions = "-d:libp2p_pubsub_anonymize=true")
|
|
||||||
|
|
||||||
task testfilter, "Run PKI filter test":
|
task testfilter, "Run PKI filter test":
|
||||||
runTest("testpkifilter",
|
runTest("testpkifilter",
|
||||||
@ -80,7 +79,6 @@ task test, "Runs the test suite":
|
|||||||
task test_slim, "Runs the test suite":
|
task test_slim, "Runs the test suite":
|
||||||
exec "nimble testnative"
|
exec "nimble testnative"
|
||||||
exec "nimble testpubsub_slim"
|
exec "nimble testpubsub_slim"
|
||||||
exec "nimble testdaemon"
|
|
||||||
exec "nimble testinterop"
|
exec "nimble testinterop"
|
||||||
exec "nimble testfilter"
|
exec "nimble testfilter"
|
||||||
|
|
||||||
|
|||||||
@ -126,9 +126,11 @@ method readOnce*(s: SecureConn,
|
|||||||
(@[], exc)
|
(@[], exc)
|
||||||
|
|
||||||
if not isNil(err):
|
if not isNil(err):
|
||||||
warn "error while reading message from secure connection, closing.", error=err.name,
|
if not (err of LPStreamEOFError):
|
||||||
message=err.msg,
|
warn "error while reading message from secure connection, closing.",
|
||||||
connection=s
|
error=err.name,
|
||||||
|
message=err.msg,
|
||||||
|
connection=s
|
||||||
await s.close()
|
await s.close()
|
||||||
raise err
|
raise err
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user