aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initoverlay_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-13 04:38:48 +0900
committerOphestra <cat@gensokyo.uk>2025-10-13 04:38:48 +0900
commit7638a44fa613f23434318bdf136723aa010e8638 (patch)
tree7b5270ed4e9b6d7f1ee0f28c58d8077aa1d18005 /container/initoverlay_test.go
parenta14b6535a66cb7ac0fc4827f767ffaee0ce04b57 (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/initoverlay_test.go')
-rw-r--r--container/initoverlay_test.go8
1 files changed, 8 insertions, 0 deletions
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("/"),