Add a test for Mutex_m#try_lock
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 78
- Forks
- 12
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 2
Description
The current tests check that try_lock exists, but they do not verify how it behaves.
It would be useful to test that the first call succeeds and a second call returns false while the mutex is already locked.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the current tests for Mutex_m#try_lock and run the existing test suite. Add coverage showing that the first call succeeds and a second call while the mutex remains locked returns false; done means both behaviors are asserted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 85/100