-
Notifications
You must be signed in to change notification settings - Fork 85
Appease linter #813
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
Appease linter #813
Conversation
| stop | ||
| @pid_controller.reset | ||
| end | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we deleting these functions? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were duplicated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh I see now
| rescue | ||
| end | ||
|
|
||
| @breaker.acquire(@resource) { raise "Error" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't this break the test?
| # Simulate dependency failures | ||
| 10.times do | ||
| @breaker.acquire(@resource) { raise "Error" } | ||
| rescue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
| write_thread.join | ||
| read_threads.each(&:join) | ||
|
|
||
| # Should complete without deadlock or errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might be needed. What is the test trying to confirm?
|
Followed up in #812 |
Remove duplicated functions and fix lines upsetting the linter