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

make test 报错 #22

Open
leex2000 opened this issue Oct 24, 2020 · 2 comments
Open

make test 报错 #22

leex2000 opened this issue Oct 24, 2020 · 2 comments

Comments

@leex2000
Copy link

make 成功了,但 make test 的时候报以下错误
go test github.com/xuperchain/xuper-sdk-go/account
ok github.com/xuperchain/xuper-sdk-go/account 0.030s
go test github.com/xuperchain/xuper-sdk-go/transfer
ok github.com/xuperchain/xuper-sdk-go/transfer (cached)
go test github.com/xuperchain/xuper-sdk-go/common
ok github.com/xuperchain/xuper-sdk-go/common (cached)
go test github.com/xuperchain/xuper-sdk-go/contract_account
ok github.com/xuperchain/xuper-sdk-go/contract_account (cached)
go test github.com/xuperchain/xuper-sdk-go/contract
ok github.com/xuperchain/xuper-sdk-go/contract (cached)
go test github.com/xuperchain/xuper-sdk-go/xchain

github.com/xuperchain/xuper-sdk-go/xchain [github.com/xuperchain/xuper-sdk-go/xchain.test]

xchain/xchain_test.go:41:5: cli.Amount undefined (type *Xchain has no field or method Amount)
xchain/xchain_test.go:43:5: cli.To undefined (type *Xchain has no field or method To)
xchain/xchain_test.go:55:40: cli.Amount undefined (type *Xchain has no field or method Amount)
xchain/xchain_test.go:81:26: not enough arguments in call to cli.GenRealTx
have (*pb.PreExecWithSelectUTXOResponse, *pb.Transaction)
want (*pb.PreExecWithSelectUTXOResponse, *pb.Transaction, string)
xchain/xchain_test.go:92:6: assignment mismatch: 1 variable but cli.PostTx returns 2 values
xchain/xchain_test.go:104:5: cli.Amount undefined (type *Xchain has no field or method Amount)
xchain/xchain_test.go:106:5: cli.To undefined (type *Xchain has no field or method To)
xchain/xchain_test.go:118:40: cli.Amount undefined (type *Xchain has no field or method Amount)
xchain/xchain_test.go:143:44: cli.To undefined (type *Xchain has no field or method To)
xchain/xchain_test.go:143:52: cli.Amount undefined (type *Xchain has no field or method Amount)
xchain/xchain_test.go:143:52: too many errors
FAIL github.com/xuperchain/xuper-sdk-go/xchain [build failed]
FAIL
Makefile:20: recipe for target 'test' failed
make: *** [test] Error 2

@susengo
Copy link

susengo commented Dec 13, 2020

没人维护嘛,我也遇到这个问题

@superlitian
Copy link
Contributor

你好,这个问题解决了吗?

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

3 participants