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/seccomp/syscall_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'container/seccomp/syscall_test.go') diff --git a/container/seccomp/syscall_test.go b/container/seccomp/syscall_test.go index 933f060b..e385a12c 100644 --- a/container/seccomp/syscall_test.go +++ b/container/seccomp/syscall_test.go @@ -5,15 +5,17 @@ import ( ) func TestSyscallResolveName(t *testing.T) { + t.Parallel() + for name, want := range Syscalls() { t.Run(name, func(t *testing.T) { + t.Parallel() + if got := syscallResolveName(name); got != want { - t.Errorf("syscallResolveName(%q) = %d, want %d", - name, got, want) + t.Errorf("syscallResolveName(%q) = %d, want %d", name, got, want) } if got, ok := SyscallResolveName(name); !ok || got != want { - t.Errorf("SyscallResolveName(%q) = %d, want %d", - name, got, want) + t.Errorf("SyscallResolveName(%q) = %d, want %d", name, got, want) } }) } -- cgit v1.3.1