Skip to content

Ensured correct culture is set on tests to match culture dependent snapshots - #7496

Merged
michaelstaib merged 2 commits into
ChilliCream:mainfrom
jarlef:jarlef/fixed-flakey-tests
Sep 24, 2024
Merged

michaelstaib merged 2 commits into
ChilliCream:mainfrom
jarlef:jarlef/fixed-flakey-tests

Conversation

@jarlef

@jarlef jarlef commented Sep 23, 2024

Copy link
Copy Markdown
Contributor

Some tests compare the results of graphql queries agains a snapshot. If the snapshot contains numbers or dates/time the assertion will not match if the machine running the test is not using the same culture setting. The current tests fails due to my local culture (no-NB) formats numbers using comma instead of dot as decimal precision.

To solve this the current PR adds the UseCultureAttribute from the xunit sample code and annotated the failing tests to use en-US culture.

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.

2 participants