-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fail: add test-mutex pattern directly to the library
This adds a `FailScenario` to the library, exposing the usual idiom of a global testing mutex and individual guards owned by each test. The global mutex is kept as an internal detail and not exposed, consumers can only borrow a guard via the scenario.
- Loading branch information
Showing
2 changed files
with
109 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters