-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
108570: kv: introduce `isolation.RunEachLevel` test utility r=nvanbenschoten a=nvanbenschoten This commit introduces a new `isolation.RunEachLevel` test utility, which runs a subtest for each isolation level. This is similar to the `testutils.RunTrueAndFalse` test utility, but for isolation levels. It avoids some boiler plate code and an indentation for tests that can use the helper. The commit also uses the new utility in a few places. While doing so, it fixes a few tests that were incorrectly handling subtests by failing to plumb the `t` parameter through to the subtest. Epic: None Release note: None Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
- Loading branch information
Showing
3 changed files
with
50 additions
and
47 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
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