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

Do not use the same error instance for tests #177

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

bolshakov
Copy link
Owner

Before this change, the tests used the same failure instance to test the red and yellow states. Instead of a list, we want to store errors in a set (#172).

Each error serializes into a JSON string. Thus, storing two instances of the same failure in a set will result in just one instance being saved. So to accommodate these changes, I updated the specs to use different error instances.

@bolshakov bolshakov self-assigned this Dec 11, 2022
@bolshakov bolshakov merged commit 95c4fc3 into master Dec 11, 2022
@bolshakov bolshakov deleted the test-specs-with-correct-time branch December 11, 2022 23:44
@bolshakov bolshakov mentioned this pull request Aug 18, 2023
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.

1 participant