From 610cfff3866f8cd0b385ef1a9fc5d50c8e6a74da Mon Sep 17 00:00:00 2001 From: Yunhee Date: Mon, 20 Aug 2018 17:24:00 -0700 Subject: [PATCH] adding missing ctrl.Finish calls --- agent/api/task/taskvolume_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/agent/api/task/taskvolume_test.go b/agent/api/task/taskvolume_test.go index cc9b2005a3d..fa10ec72518 100644 --- a/agent/api/task/taskvolume_test.go +++ b/agent/api/task/taskvolume_test.go @@ -135,6 +135,7 @@ func TestInitializeLocalDockerVolume(t *testing.T) { func TestInitializeSharedProvisionedVolume(t *testing.T) { sharedVolumeMatchFullConfig := true ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{ @@ -174,6 +175,7 @@ func TestInitializeSharedProvisionedVolume(t *testing.T) { func TestInitializeSharedProvisionedVolumeError(t *testing.T) { sharedVolumeMatchFullConfig := true ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{ @@ -210,6 +212,7 @@ func TestInitializeSharedProvisionedVolumeError(t *testing.T) { func TestInitializeSharedNonProvisionedVolume(t *testing.T) { sharedVolumeMatchFullConfig := true ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{ @@ -255,6 +258,7 @@ func TestInitializeSharedNonProvisionedVolumeValidateNameOnly(t *testing.T) { sharedVolumeMatchFullConfig := false ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{ @@ -301,6 +305,7 @@ func TestInitializeSharedNonProvisionedVolumeValidateNameOnly(t *testing.T) { func TestInitializeSharedAutoprovisionVolumeNotFoundError(t *testing.T) { sharedVolumeMatchFullConfig := true ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{ @@ -338,6 +343,7 @@ func TestInitializeSharedAutoprovisionVolumeNotFoundError(t *testing.T) { func TestInitializeSharedAutoprovisionVolumeNotMatchError(t *testing.T) { sharedVolumeMatchFullConfig := true ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{ @@ -377,6 +383,7 @@ func TestInitializeSharedAutoprovisionVolumeNotMatchError(t *testing.T) { func TestInitializeSharedAutoprovisionVolumeTimeout(t *testing.T) { sharedVolumeMatchFullConfig := true ctrl := gomock.NewController(t) + defer ctrl.Finish() dockerClient := mock_dockerapi.NewMockDockerClient(ctrl) testTask := &Task{