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

Added tests for XCM barriers: AllowSubscriptions, WithUniqueTopic and TrailingSetTopicAsId #3955

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Apr 2, 2024

Closes: #1756

@bkontur bkontur added R0-silent Changes should not be mentioned in any release notes T6-XCM This PR/Issue is related to XCM. labels Apr 2, 2024
@bkontur bkontur requested a review from a team as a code owner April 2, 2024 20:43
@bkontur bkontur enabled auto-merge April 3, 2024 10:48
SetTopic([0; 32]),
]);

let test_data = vec![
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Not very important, but personally I would find it easier to follow and I think it would also be more extensible if we just asserted each case separately instead of iterating through a vec. I don't think it would create a lot of duplication.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this pattern on several other places and also used it elsewhere, where I had much more test data (corner) cases than just 4 here :)

As a part of #3692 I will add a new barrier, so I will come back to this and simplify.

@bkontur bkontur added this pull request to the merge queue Apr 3, 2024
Merged via the queue into master with commit cdacfb9 Apr 3, 2024
133 of 136 checks passed
@bkontur bkontur deleted the bko-xcm-barriers-tests branch April 3, 2024 11:35
Ank4n pushed a commit that referenced this pull request Apr 9, 2024
dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T6-XCM This PR/Issue is related to XCM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SubscribeVersion from the Relay will be blocked by new parachains
4 participants