Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add a test for Mutex_m#try_lock

Open Beginner friendly
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
ruby
Domain
testing

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.

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.

Dominant language
Ruby
Stars
78
Forks
12
Avg merge
3d 21h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/mutex_m

All issues in ruby/mutex_m

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.