diff --git a/integration/main_test.go b/integration/main_test.go index 4c9e733ae..53c5d7ce4 100644 --- a/integration/main_test.go +++ b/integration/main_test.go @@ -286,16 +286,7 @@ func WithWindowsResources(r *runtime.WindowsContainerResources) ContainerOpts { } func WithVolumeMount(hostPath, containerPath string) ContainerOpts { - return func(c *runtime.ContainerConfig) { - hostPath, _ = filepath.Abs(hostPath) - containerPath, _ = filepath.Abs(containerPath) - mount := &runtime.Mount{ - HostPath: hostPath, - ContainerPath: containerPath, - SelinuxRelabel: selinux.GetEnabled(), - } - c.Mounts = append(c.Mounts, mount) - } + return WithIDMapVolumeMount(hostPath, containerPath, nil, nil) } func WithIDMapVolumeMount(hostPath, containerPath string, uidMaps, gidMaps []*runtime.IDMapping) ContainerOpts {