Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p Test_ConnManager 测试不通过 #1082

Open
libangzhu opened this issue Aug 6, 2021 · 1 comment
Open

p2p Test_ConnManager 测试不通过 #1082

libangzhu opened this issue Aug 6, 2021 · 1 comment

Comments

@libangzhu
Copy link
Contributor

image
--- FAIL: Test_ConnManager (0.06s)
conns_test.go:125: rate 1.000 KB/s
conns_test.go:136:
Error Trace: conns_test.go:136
Error: Not equal:
expected: 1
actual : 2
Test: Test_ConnManager

@libangzhu
Copy link
Contributor Author

是统计连接节点数量的bug,
image
这个函数计算的不够准确,在libp2p中会有一个节点中存在多个连接的情况。即一个peer 下存在多个conn

libangzhu added a commit to libangzhu/chain33 that referenced this issue Aug 6, 2021
vipwzw pushed a commit that referenced this issue Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant