From 7638a44fa613f23434318bdf136723aa010e8638 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 13 Oct 2025 04:38:48 +0900 Subject: 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 --- container/capability_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'container/capability_test.go') 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) } -- cgit v1.3.1