-
Notifications
You must be signed in to change notification settings - Fork 76
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
Poc add zombienet #668
Poc add zombienet #668
Conversation
For context, it's not the Polkadot nodes that we want to test. We want to test whether substrate-connect successfully synchronizes with the chain that the Polkadot nodes are running. |
Thank you @pepoviola . I will create a simple test for implementing what @tomaka describes and use the code of PR for testing purposes if you are ok with that.
For that test the chainspecs (which should contain the spawned bootnodes) will be needed - I will check the repo of zombienet to figure out how to do this. |
Thanks for the feedback @tomaka / @wirednkod, I use Thanks! |
Zombienet configuration and tests
…poc-add-zombienet
…poc-add-zombienet
…poc-add-zombienet
// add 20s sleep to give time to sync | ||
await new Promise((resolve) => setTimeout(resolve, 20000)) |
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.
Same remark
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.
We need a slight timeout for pausing the process until Chain is initialised.
If this timeout is removed then the following error shows:
2022-02-03 17:22:25 RPC-CORE: subscribeNewHeads(): Header:: Chain is not initialised
2022-02-03 17:22:25 DRR: Chain is not initialised
2022-02-03 17:22:25 RPC-CORE: subscribeNewHeads(): Header:: Chain is not initialised
unhandledRejection
Error: Chain is not initialised
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.
We can use the sleep x
command in the feature
file instead of having in this scripts.
A new PR is addressing this. |
Hi @wirednkod, I open this as
draft
to check how we can integrate the test you need inzombienet
. At the moment I switch to usenative
provider in theci
sincepodman
just hungs spawning the pods.If you have test that needs the
chain-spec
file and theendpoints
of the nodes, we can add those to thefeature
file and will run inside the test-runner.Thanks!