docker: fix driver test from changed func args

This commit is contained in:
Nick Ethier
2019-06-14 22:32:55 -04:00
parent 67ea2e9305
commit c8c1ad748e
2 changed files with 3 additions and 1 deletions

View File

@@ -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))
}

View File

@@ -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{