Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Mar 7, 2023

I've seen a few places where snapshot order got changed, which was a bit hard to understand.

This PR updates the snapshots to:

  1. Ensure entries are always ordered by timestamp
  2. Simply use the whole snapshot (instead of just data) for better clarity. We just replace timestamp with [timestamp].

@mydea mydea requested review from Lms24 and billyvg March 7, 2023 13:39
@mydea mydea self-assigned this Mar 7, 2023
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Nice!

@mydea
Copy link
Member Author

mydea commented Mar 7, 2023

So, since this is still flaky, I will filter out the ones with source: 1, which means it's a mouse movement. As we don't really test those, IMHO it's fine to filter them out here.

Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

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

makes sense, that's odd that they weren't ordered

"left": 0,
"top": 0
}
"timestamp": [timestamp]
Copy link
Member

Choose a reason for hiding this comment

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

twitch

Copy link
Member Author

Choose a reason for hiding this comment

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

😂 we can also leave it 0?

@mydea mydea merged commit f8b56b0 into develop Mar 7, 2023
@mydea mydea deleted the fn/unflake-tests branch March 7, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants