mirror of https://github.com/docker/docs.git
Make go vet ./... happy
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
parent
35054c5c71
commit
794cf4cf4d
|
@ -205,7 +205,9 @@ func TestReturnExitCode1onError(t *testing.T) {
|
|||
|
||||
func TestReturnExitCode3onErrorDuringPreCreate(t *testing.T) {
|
||||
command := func(commandLine CommandLine, api libmachine.API) error {
|
||||
return mcnerror.ErrDuringPreCreate{errors.New("foo is not bar")}
|
||||
return mcnerror.ErrDuringPreCreate{
|
||||
Cause: errors.New("foo is not bar"),
|
||||
}
|
||||
}
|
||||
|
||||
exitCode := checkErrorCodeForCommand(command)
|
||||
|
|
|
@ -69,7 +69,7 @@ func NewNetstatProvisioner() provision.Provisioner {
|
|||
|
||||
func TestStart(t *testing.T) {
|
||||
provision.SetDetector(&provision.FakeDetector{
|
||||
NewNetstatProvisioner(),
|
||||
Provisioner: NewNetstatProvisioner(),
|
||||
})
|
||||
|
||||
host := &Host{
|
||||
|
|
|
@ -123,7 +123,9 @@ func (api *Client) Create(h *host.Host) error {
|
|||
log.Info("Running pre-create checks...")
|
||||
|
||||
if err := h.Driver.PreCreateCheck(); err != nil {
|
||||
return mcnerror.ErrDuringPreCreate{err}
|
||||
return mcnerror.ErrDuringPreCreate{
|
||||
Cause: err,
|
||||
}
|
||||
}
|
||||
|
||||
if err := api.Save(h); err != nil {
|
||||
|
|
Loading…
Reference in New Issue