From 318b3f187bef9f073c3fe73de72f65c0818e31ff Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Tue, 23 Nov 2021 10:21:29 +0000 Subject: [PATCH] docs: No present continuous in UT advice doc Change some headings to avoid using the present continuous tense which should not be used for headings. Signed-off-by: James O. D. Hunt --- docs/Unit-Test-Advice.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Unit-Test-Advice.md b/docs/Unit-Test-Advice.md index 8d3b7b94e..e88d8acf0 100644 --- a/docs/Unit-Test-Advice.md +++ b/docs/Unit-Test-Advice.md @@ -257,7 +257,7 @@ mod tests { ``` -## User running the test +## Test user [Unit tests are run *twice*](https://github.com/kata-containers/tests/blob/main/.ci/go-test.sh): @@ -273,13 +273,13 @@ Some repositories already provide utility functions to skip a test: - if running as `root` - if not running as `root` -### running Golang tests as a different user +### Run Golang tests as a different user The main repository has the most comprehensive set of skip abilities. See: - https://github.com/kata-containers/kata-containers/tree/main/src/runtime/pkg/katatestutils -### running Rust tests as a different user +### Run Rust tests as a different user One method is to use the `nix` crate along with some custom macros: