单元测试偶发失败
--- 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