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

Fix snapshot test #119

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Fix snapshot test #119

merged 1 commit into from
Mar 19, 2024

Conversation

vacantron
Copy link
Collaborator

@vacantron vacantron commented Mar 19, 2024

The unsorted slots in the snapshots are considered to be the error sometimes by the diff command. Sort the slots before saving/checking the snapshots.

Related PR:

Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

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

Make the commit message informative.

The current snapshot is a JSON object which dumped by the `dot`
utility. The keys of object or the elements of arrays might not be
sorted by the `jq` and could make the `diff` command failed. The
incoming changes make sure the keys and the elements to be sorted
before saving/checking the snapshots.
@jserv jserv merged commit 6999393 into sysprog21:master Mar 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants