Skip to content

Commit 052c943

Browse files
committed
Run TestJailer_Isolated's subtests in parallel
Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 37b281d commit 052c943

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

runtime/jailer_integ_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ import (
4040
func TestJailer_Isolated(t *testing.T) {
4141
prepareIntegTest(t)
4242
t.Run("Without Jailer", func(t *testing.T) {
43+
t.Parallel()
4344
testJailer(t, nil)
4445
})
4546
t.Run("With Jailer", func(t *testing.T) {
47+
t.Parallel()
4648
testJailer(t, &proto.JailerConfig{
4749
UID: 300001,
4850
GID: 300001,
4951
})
5052
})
5153
t.Run("With Jailer and bind-mount", func(t *testing.T) {
54+
t.Parallel()
5255
testJailer(t, &proto.JailerConfig{
5356
UID: 300001,
5457
GID: 300001,
@@ -118,9 +121,9 @@ func testJailer(t *testing.T, jailerConfig *proto.JailerConfig) {
118121
require.NoError(err)
119122

120123
c, err := client.NewContainer(ctx,
121-
"container",
124+
vmID+"-container",
122125
containerd.WithSnapshotter(defaultSnapshotterName),
123-
containerd.WithNewSnapshot("snapshot", image),
126+
containerd.WithNewSnapshot(vmID+"-snapshot", image),
124127
containerd.WithNewSpec(
125128
oci.WithProcessArgs(
126129
"/bin/sh", "-c", "echo hello && cat /mnt/in-container/dir/hello",

0 commit comments

Comments
 (0)