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

单元测试偶发失败 #1284

Closed
bysomeone opened this issue Dec 30, 2022 · 1 comment · Fixed by #1324
Closed

单元测试偶发失败 #1284

bysomeone opened this issue Dec 30, 2022 · 1 comment · Fixed by #1324
Labels

Comments

@bysomeone
Copy link
Collaborator

--- FAIL: TestInit (0.83s)
panic: interface conversion: interface {} is *types.Reply, not *types.BlockBodys [recovered]
panic: interface conversion: interface {} is *types.Reply, not *types.BlockBodys

goroutine 32 [running]:
testing.tRunner.func1.2({0x8b26880, 0x10b67890})
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1209 +0x2ab
testing.tRunner.func1(0xb0825a0)
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1212 +0x27d
panic({0x8b26880, 0x10b67890})
/opt/hostedtoolcache/go/1.17.13/x64/src/runtime/panic.go:1038 +0x1c5
github.com/33cn/chain33/system/p2p/dht/protocol/p2pstore.TestInit(0xb0825a0)
/home/runner/work/chain33/chain33/system/p2p/dht/protocol/p2pstore/p2pstore_test.go:54 +0x15e8
testing.tRunner(0xb0825a0, 0x8e79aa0)
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0xe6
created by testing.(*T).Run
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1306 +0x33a
FAIL github.com/33cn/chain33/system/p2p/dht/protocol/p2pstore 0.855s
--- FAIL: TestPeerInfoHandler (2.21s)
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0

goroutine 37 [running]:
testing.tRunner.func1.2({0x8c52f40, 0xbab0140})
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1209 +0x2ab
testing.tRunner.func1(0xac82c30)
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1212 +0x27d
panic({0x8c52f40, 0xbab0140})
/opt/hostedtoolcache/go/1.17.13/x64/src/runtime/panic.go:1038 +0x1c5
github.com/33cn/chain33/system/p2p/dht/protocol/peer.TestPeerInfoHandler(0xac82c30)
/home/runner/work/chain33/chain33/system/p2p/dht/protocol/peer/peerinfo_test.go:184 +0xcce
testing.tRunner(0xac82c30, 0x8f4eb04)
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0xe6
created by testing.(*T).Run
/opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1306 +0x33a
FAIL github.com/33cn/chain33/system/p2p/dht/protocol/peer 2.232s

@33cn
Copy link
Owner

33cn commented May 31, 2024

🎉 This issue has been resolved in version 1.69.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@33cn 33cn added the released label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants