Skip to content

Commit

Permalink
adding missing ctrl.Finish calls
Browse files Browse the repository at this point in the history
  • Loading branch information
yhlee-aws committed Aug 21, 2018
1 parent 416da6c commit 8829aa4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions agent/api/task/taskvolume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 8829aa4

Please sign in to comment.