Chore: remove darwin code on test because orbstack can run it

This commit is contained in:
Dreamacro
2023-08-27 00:35:45 +08:00
parent 45c10a17a6
commit e4cd3e5306
5 changed files with 9 additions and 102 deletions

View File

@@ -15,10 +15,7 @@ func startContainer(cfg *container.Config, hostCfg *container.HostConfig, name s
}
defer c.Close()
if !isDarwin {
hostCfg.NetworkMode = "host"
}
hostCfg.NetworkMode = "host"
container, err := c.ContainerCreate(context.Background(), cfg, hostCfg, nil, nil, name)
if err != nil {
return "", err