-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
xgo 版本: 1.1.7
xgo test --trap-all -run TestZhCreate $PWD/test/chaincode
--- FAIL: TestZhCreate (0.00s)
panic: func not instrumented by xgo, see https://github.com/xhd2015/xgo/tree/master/doc/ERR_NOT_INSTRUMENTED.md: github.com/hyperledger/fabric/core/chaincode/shim.(*MockStub).PutState [recovered]
panic: func not instrumented by xgo, see https://github.com/xhd2015/xgo/tree/master/doc/ERR_NOT_INSTRUMENTED.md: github.com/hyperledger/fabric/core/chaincode/shim.(*MockStub).PutState
goroutine 21 [running]:
testing.tRunner.func1.2({0x1db03e0, 0xc0004b8180})
/home/ecs-user/.xgo/go-instrument/go1.23.7_ho_ec_.g_ve_1._9922e4a5/go1.23.7/src/testing/testing.go:1632 +0x230
testing.tRunner.func1()
/home/ecs-user/.xgo/go-instrument/go1.23.7_ho_ec_.g_ve_1._9922e4a5/go1.23.7/src/testing/testing.go:1635 +0x35e
panic({0x1db03e0?, 0xc0004b8180?})
/home/ecs-user/.xgo/go-instrument/go1.23.7_ho_ec_.g_ve_1._9922e4a5/go1.23.7/src/runtime/panic.go:791 +0x132
github.com/xhd2015/xgo/runtime/internal/trap.Inspect({0x1d1fec0, 0xc00005adb0})
/home/ecs-user/go/1.23.7/pkg/mod/github.com/xhd2015/xgo/runtime@v1.1.7/internal/trap/inspect.go:68 +0x625
github.com/xhd2015/xgo/runtime/internal/trap.pushMockReplacer({0x1d1fec0, 0xc00005adb0}, {0x1d1fec0, 0x1fda050})
/home/ecs-user/go/1.23.7/pkg/mod/github.com/xhd2015/xgo/runtime@v1.1.7/internal/trap/mock.go:160 +0x485
github.com/xhd2015/xgo/runtime/internal/trap.PushMockReplacer(...)
/home/ecs-user/go/1.23.7/pkg/mod/github.com/xhd2015/xgo/runtime@v1.1.7/internal/trap/mock.go:47
github.com/xhd2015/xgo/runtime/mock.Patch(...)
/home/ecs-user/go/1.23.7/pkg/mod/github.com/xhd2015/xgo/runtime@v1.1.7/mock/patch.go:15
github.com/motoreq/istate/test/chaincode.InitChaincode(0xc0000d5380)
/home/ecs-user/external/Workspaces/istate/test/chaincode/hyperledger_test-utils.go:37 +0x290
github.com/motoreq/istate/test/chaincode.TestInit(0xc0000d5380)
/home/ecs-user/external/Workspaces/istate/test/chaincode/iState_test.go:45 +0x18c
github.com/motoreq/istate/test/chaincode.TestZhCreate(0xc0000d5380)
/home/ecs-user/external/Workspaces/istate/test/chaincode/iStatezh_test.go:38 +0x151
testing.tRunner(0xc0000d5380, 0x1fd9798)
/home/ecs-user/.xgo/go-instrument/go1.23.7_ho_ec_.g_ve_1._9922e4a5/go1.23.7/src/testing/testing.go:1690 +0xf4
created by testing.(*T).Run in goroutine 1
/home/ecs-user/.xgo/go-instrument/go1.23.7_ho_ec_.g_ve_1._9922e4a5/go1.23.7/src/testing/testing.go:1743 +0x390
FAIL github.com/motoreq/istate/test/chaincode 0.121s
FAIL直到把版本降成了1.1.1才行,还是原来的一套代码,用init来初始化,
Metadata
Metadata
Assignees
Labels
No labels