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(test_utils): recover from lock poisoning in tests #18

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

alexfertel
Copy link
Contributor

Small fix so that when a test thread panics (which happens when an assert_eq evaluates to false), we recover from it and all other tests continue running. Otherwise, the lock gets poisoned, we unwrap and all the other tests fail.

@alexfertel alexfertel added priority: 3 We will resolve this first before everything else. type: bug Something is not working as intended. effort: low Easy or tiny task that takes less than a day. labels Mar 28, 2024
@alexfertel alexfertel self-assigned this Mar 28, 2024
Copy link

netlify bot commented Mar 28, 2024

Deploy Preview for contracts-stylus canceled.

Name Link
🔨 Latest commit 4fb493a
🔍 Latest deploy log https://app.netlify.com/sites/contracts-stylus/deploys/660580003a565d00083f5f2c

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.3%. Comparing base (1c4b23b) to head (4fb493a).

Additional details and impacted files
Files Coverage Δ
contracts/src/test_utils.rs 100.0% <100.0%> (ø)

@alexfertel alexfertel merged commit 9f79e79 into main Mar 29, 2024
18 checks passed
@alexfertel alexfertel deleted the recover-from-lock-poisoning branch March 29, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: low Easy or tiny task that takes less than a day. priority: 3 We will resolve this first before everything else. type: bug Something is not working as intended.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants