docker: fix driver test from changed func args
This commit is contained in:
parent
d752734719
commit
f50fa7ef08
|
@ -2230,7 +2230,7 @@ func TestDockerDriver_VolumeError(t *testing.T) {
|
|||
driver := dockerDriverHarness(t, nil)
|
||||
|
||||
// assert volume error is recoverable
|
||||
_, err := driver.Impl().(*Driver).createContainer(fakeDockerClient{}, docker.CreateContainerOptions{Config: &docker.Config{}}, cfg)
|
||||
_, err := driver.Impl().(*Driver).createContainer(fakeDockerClient{}, docker.CreateContainerOptions{Config: &docker.Config{}}, cfg.Image)
|
||||
require.True(t, structs.IsRecoverable(err))
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,8 @@ func (d *Driver) DestroyNetwork(allocID string, spec *drivers.NetworkIsolationSp
|
|||
})
|
||||
}
|
||||
|
||||
// createSandboxContainerConfig creates a docker container configuration which
|
||||
// starts a container with an empty network namespace
|
||||
func (d *Driver) createSandboxContainerConfig(allocID string) (*docker.CreateContainerOptions, error) {
|
||||
|
||||
return &docker.CreateContainerOptions{
|
||||
|
|
Loading…
Reference in New Issue