-
Notifications
You must be signed in to change notification settings - Fork 29
Reuse network in e2e test #819
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
base: main
Are you sure you want to change the base?
Conversation
log.Info("Waiting for 10s to ensure no new block confirmations on destination chain") | ||
Consistently(newHeadsB, 10*time.Second, 500*time.Millisecond).ShouldNot(Receive()) | ||
// log.Info("Waiting for 10s to ensure no new block confirmations on destination chain") | ||
// Consistently(newHeadsB, 10*time.Second, 500*time.Millisecond).ShouldNot(Receive()) |
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.
Why do we need this check? With reusing network, it failed to pass this check.
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.
Does this still fail?
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.
Yes, it still failed. Can we remove this check?
I tried running this but couldn't get it to work. Where is the default location for I would have expected to be able to set
|
I do like Geoff's suggestion of creating a network if not already present and then re-using it if it is |
log.Info("Waiting for 10s to ensure no new block confirmations on destination chain") | ||
Consistently(newHeadsB, 10*time.Second, 500*time.Millisecond).ShouldNot(Receive()) | ||
// log.Info("Waiting for 10s to ensure no new block confirmations on destination chain") | ||
// Consistently(newHeadsB, 10*time.Second, 500*time.Millisecond).ShouldNot(Receive()) |
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.
Does this still fail?
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.
I ran this using ./scripts/e2e_test.sh --network-dir ~/reuse-dir
twice. The first time passed. The second time failed failed to read network: failed to read network config: open /Users/geoffrey.stuart/reuse-dir/config.json: no such file or directory
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.
in the e2e tests, why do we create a subnet and then convert it to an L-1
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.
To test the L1 case. In general networks first get created as subnets and the concept of subnet still remains, i.e. they are still referred to by their subnetID
even if they are L1s
Why this should be merged
How this works
network-dir
flag to passing in the network directory storing network infonetwork-dir
flag is set, it loads the network from the directory and set the saved teleporter registry addresses and validator addressesHow this was tested
How is this documented