diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-13 04:38:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-13 04:38:48 +0900 |
| commit | 7638a44fa613f23434318bdf136723aa010e8638 (patch) | |
| tree | 7b5270ed4e9b6d7f1ee0f28c58d8077aa1d18005 /container/capability_test.go | |
| parent | a14b6535a66cb7ac0fc4827f767ffaee0ce04b57 (diff) | |
treewide: parallel tests
Most tests already had no global state, however parallel was never enabled. This change enables it for all applicable tests.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/capability_test.go')
| -rw-r--r-- | container/capability_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/container/capability_test.go b/container/capability_test.go index 21043fb0..9494480a 100644 --- a/container/capability_test.go +++ b/container/capability_test.go @@ -3,6 +3,8 @@ package container import "testing" func TestCapToIndex(t *testing.T) { + t.Parallel() + testCases := []struct { name string cap uintptr @@ -14,6 +16,7 @@ func TestCapToIndex(t *testing.T) { } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { + t.Parallel() if got := capToIndex(tc.cap); got != tc.want { t.Errorf("capToIndex: %#x, want %#x", got, tc.want) } @@ -22,6 +25,8 @@ func TestCapToIndex(t *testing.T) { } func TestCapToMask(t *testing.T) { + t.Parallel() + testCases := []struct { name string cap uintptr @@ -33,6 +38,7 @@ func TestCapToMask(t *testing.T) { } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { + t.Parallel() if got := capToMask(tc.cap); got != tc.want { t.Errorf("capToMask: %#x, want %#x", got, tc.want) } |
