From 9efbd1affad7b6b801ff39ae24f3acbeedb14756 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Mon, 26 Oct 2015 16:54:51 -0700 Subject: [PATCH] Fixed the Fake Docker client to simulate Exec start failures --- command/agent/check_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/check_test.go b/command/agent/check_test.go index 312f922b62..e376096957 100644 --- a/command/agent/check_test.go +++ b/command/agent/check_test.go @@ -459,7 +459,7 @@ func (d *fakeDockerClientWithStartExecFailure) CreateExec(opts docker.CreateExec } 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) {