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/initoverlay_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'container/initoverlay_test.go') diff --git a/container/initoverlay_test.go b/container/initoverlay_test.go index ad07ef97..1c0e642a 100644 --- a/container/initoverlay_test.go +++ b/container/initoverlay_test.go @@ -10,7 +10,11 @@ import ( ) func TestMountOverlayOp(t *testing.T) { + t.Parallel() + t.Run("argument error", func(t *testing.T) { + t.Parallel() + testCases := []struct { name string err *OverlayArgumentError @@ -30,6 +34,7 @@ func TestMountOverlayOp(t *testing.T) { } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { + t.Parallel() if got := tc.err.Error(); got != tc.want { t.Errorf("Error: %q, want %q", got, tc.want) } @@ -270,7 +275,10 @@ func TestMountOverlayOp(t *testing.T) { }) t.Run("unreachable", func(t *testing.T) { + t.Parallel() + t.Run("nil Upper non-nil Work not ephemeral", func(t *testing.T) { + t.Parallel() wantErr := OpStateError("overlay") if err := (&MountOverlayOp{ Work: check.MustAbs("/"), -- cgit v1.3.1