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.

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