Skip to content

Commit e4ca9d5

Browse files
committed
test
1 parent 55533f7 commit e4ca9d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/tests/container.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ func (c *ContainerRequest) Remove() *ContainerRequest {
103103

104104
// Mounts the 'hostPath' working directory from localhost into the container.
105105
func (c *ContainerRequest) Mount(mounts ...mount.Mount) *ContainerRequest {
106+
req := &c.request
106107
c.request.HostConfigModifier = func(cfg *container.HostConfig) {
108+
cfg.Privileged = req.Privileged
107109
if cfg.Mounts == nil {
108110
cfg.Mounts = make([]mount.Mount, 0)
109111
}

0 commit comments

Comments
 (0)