-
Notifications
You must be signed in to change notification settings - Fork 934
Fixed event comparison issue in Syncpointspec tests #6786
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
Conversation
🦋 Changeset detectedLatest commit: 888a98d The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Changeset File Check
|
Size Report 1Affected ProductsNo changes between base commit (e9fb403) and merge commit (50d7ca9).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (e9fb403) and merge commit (a87034e).Test Logs |
const EVENT_ORDERING = [ | ||
'child_removed', | ||
'child_added', | ||
'child_moved', | ||
'child_changed', | ||
'value' | ||
]; |
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.
@puf It seems that at one point we were enforcing this order. Just FYI.
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.
Approving as formality (no doc impact). Thanks!
Fixes problem where comparisons between expected and actual events weren't happening correctly.
Fixing this caused other tests to fail because we expected specific events to be raised before other events. However, this is not how the SDKs work now. They order events based on where the event is in the synctree, not based on type of the event.