-
Notifications
You must be signed in to change notification settings - Fork 290
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
mpm integration-test support fork from remote and call-api #3600
Conversation
主要流程基本完成,剩下 API 接口的实现,请老师帮忙看看是否有问题? @jolestar |
目前存在的问题:
|
Codecov Report
@@ Coverage Diff @@
## master #3600 +/- ##
==========================================
- Coverage 28.95% 28.87% -0.08%
==========================================
Files 589 591 +2
Lines 49864 50342 +478
Branches 23450 23715 +265
==========================================
+ Hits 14434 14529 +95
- Misses 21274 21655 +381
- Partials 14156 14158 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
准备在DAO里接入这部分代码,目前只支持fork dev网络进行集成测试? |
halley 也行,不过 barnard 和 main 需要等发布新版本后部署后 |
在halley上测试call-api方法,integration test 会一直hang住 @jolestar : //# init --rpc http://halley.seed.starcoin.org --block-number 76107 //# faucet --addr creator --amount 100000000000 //# call-api state.get_with_proof_by_root_raw ["0x6bfb460477adf9dd0455d3de2fc7f211/1/0x00000000000000000000000000000001::IdentifierNFT::IdentifierNFT<0x6bfb460477adf9dd0455d3de2fc7f211::SBTModule::DaoMember<0x6bfb460477adf9dd0455d3de2fc7f211::SBTModule::SbtTestDAO>,0x6bfb460477adf9dd0455d3de2fc7f211::SBTModule::DaoMemberBody<0x6bfb460477adf9dd0455d3de2fc7f211::SBTModule::SbtTestDAO>>","0xd5cd5dc44799c989a84b7d4a810259f373b13a9bf8ee21ecbed0fab264e2090d"] //TODO how to convert the type.
} |
我看看 |
@baichuan3 是不是网络问题,用 curl 测试一下网络 |
curl --location --request POST 'https://halley-seed.starcoin.org' { integration-test 则会一直hang住: mpm integration-test snapshot running 1 tests |
看之前integration-test例子里写的是halley.seed,curl里写的是halley-seed,跟这个写法有关吗?
|
halley-seed 是 https, halley.seed 是 http |
测试下来call api在某些场景下会失败,测试case如下 @jolestar :
同样的rpc接口,将参数改为parent_hash,call api会失败。
用上同样的参数,在命令行curl下调用chain.get_block_by_hash,传入block_hash和parent_hash,都能正常返回。 curl --location --request POST 'https://halley-seed.starcoin.org' |
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information
已完成内容:
未完成内容: