mirror of https://github.com/status-im/consul.git
Fixed the Fake Docker client to simulate Exec start failures
This commit is contained in:
parent
423f7fbcac
commit
9efbd1affa
|
@ -459,7 +459,7 @@ func (d *fakeDockerClientWithStartExecFailure) CreateExec(opts docker.CreateExec
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *fakeDockerClientWithStartExecFailure) StartExec(id string, opts docker.StartExecOptions) error {
|
func (d *fakeDockerClientWithStartExecFailure) StartExec(id string, opts docker.StartExecOptions) error {
|
||||||
return nil
|
return errors.New("Couldn't Start Exec")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *fakeDockerClientWithStartExecFailure) InspectExec(id string) (*docker.ExecInspect, error) {
|
func (d *fakeDockerClientWithStartExecFailure) InspectExec(id string) (*docker.ExecInspect, error) {
|
||||||
|
|
Loading…
Reference in New Issue