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

use MockXcm to simulate test #21

Open
zqhxuyuan opened this issue Jan 5, 2022 · 1 comment
Open

use MockXcm to simulate test #21

zqhxuyuan opened this issue Jan 5, 2022 · 1 comment

Comments

@zqhxuyuan
Copy link
Contributor

currenty xcm-simulator and xcm-emulator both use non-relayed(thread-local/memory like) to test xcm.

As cumulus aleady support inject dmp_messages and hrmp_messages into MockXcm(also aim to test) in this PR: paritytech/cumulus#876. maybe we could let xcm-simulator unchanged
but xcm-emulator intergrate this feature so that we could also test something more than just handle_messages. because current the implementation of dmp-queue and xcmp-queue has some implements detail(such as cache,status,page etc), although the testcase in the cumulus repo can make sure it all works well. but I think we may need further/deeper integration?

@zqhxuyuan zqhxuyuan changed the title use MockXcm to inject use MockXcm to simulate test Jan 5, 2022
@shaunxw
Copy link
Owner

shaunxw commented Jan 5, 2022

Yes it would be helpful for tests. PR is welcomed.

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

2 participants