From 562880b276edb9130eab6adaab27d8aeb41ec388 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 11 Feb 2020 18:53:01 +0100 Subject: [PATCH] Fix more goimports ``` daemon/logger/splunk/splunk_test.go:33: File is not `goimports`-ed (goimports) envKey: "a", envRegexKey: "^foo", labelsKey: "b", tagKey: "c", integration/build/build_test.go:41: File is not `goimports`-ed (goimports) rm: false, forceRm: false, integration/image/remove_unix_test.go:49: File is not `goimports`-ed (goimports) Root: d.Root, ``` Signed-off-by: Sebastiaan van Stijn --- daemon/logger/splunk/splunk_test.go | 14 +++++++------- integration-cli/docker_cli_build_test.go | 2 +- integration/build/build_test.go | 24 ++++++++++++------------ integration/image/remove_unix_test.go | 2 +- integration/service/jobs_test.go | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/daemon/logger/splunk/splunk_test.go b/daemon/logger/splunk/splunk_test.go index 50355b156b..c5f3164d75 100644 --- a/daemon/logger/splunk/splunk_test.go +++ b/daemon/logger/splunk/splunk_test.go @@ -30,10 +30,10 @@ func TestValidateLogOpt(t *testing.T) { splunkVerifyConnectionKey: "true", splunkGzipCompressionKey: "true", splunkGzipCompressionLevelKey: "1", - envKey: "a", - envRegexKey: "^foo", - labelsKey: "b", - tagKey: "c", + envKey: "a", + envRegexKey: "^foo", + labelsKey: "b", + tagKey: "c", }) if err != nil { t.Fatal(err) @@ -251,9 +251,9 @@ func TestInlineFormatWithNonDefaultOptions(t *testing.T) { splunkIndexKey: "myindex", splunkFormatKey: splunkFormatInline, splunkGzipCompressionKey: "true", - tagKey: "{{.ImageName}}/{{.Name}}", - labelsKey: "a", - envRegexKey: "^foo", + tagKey: "{{.ImageName}}/{{.Name}}", + labelsKey: "a", + envRegexKey: "^foo", }, ContainerID: "containeriid", ContainerName: "/container_name", diff --git a/integration-cli/docker_cli_build_test.go b/integration-cli/docker_cli_build_test.go index c7d6ef0816..d2da1bb3aa 100644 --- a/integration-cli/docker_cli_build_test.go +++ b/integration-cli/docker_cli_build_test.go @@ -657,7 +657,7 @@ func (s *DockerSuite) TestBuildCopyWildcard(c *testing.T) { "file2.txt": "test2", "dir/nested_file": "nested file", "dir/nested_dir/nest_nest_file": "2 times nested", - "dirt": "dirty", + "dirt": "dirty", })) defer ctx.Close() diff --git a/integration/build/build_test.go b/integration/build/build_test.go index 0802b2cb3b..1ad3159edf 100644 --- a/integration/build/build_test.go +++ b/integration/build/build_test.go @@ -38,8 +38,8 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) { RUN exit 0 RUN exit 0`, numberOfIntermediateContainers: 2, - rm: false, - forceRm: false, + rm: false, + forceRm: false, }, { name: "successful build with remove", @@ -47,8 +47,8 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) { RUN exit 0 RUN exit 0`, numberOfIntermediateContainers: 0, - rm: true, - forceRm: false, + rm: true, + forceRm: false, }, { name: "successful build with remove and force remove", @@ -56,8 +56,8 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) { RUN exit 0 RUN exit 0`, numberOfIntermediateContainers: 0, - rm: true, - forceRm: true, + rm: true, + forceRm: true, }, { name: "failed build with no removal", @@ -65,8 +65,8 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) { RUN exit 0 RUN exit 1`, numberOfIntermediateContainers: 2, - rm: false, - forceRm: false, + rm: false, + forceRm: false, }, { name: "failed build with remove", @@ -74,8 +74,8 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) { RUN exit 0 RUN exit 1`, numberOfIntermediateContainers: 1, - rm: true, - forceRm: false, + rm: true, + forceRm: false, }, { name: "failed build with remove and force remove", @@ -83,8 +83,8 @@ func TestBuildWithRemoveAndForceRemove(t *testing.T) { RUN exit 0 RUN exit 1`, numberOfIntermediateContainers: 0, - rm: true, - forceRm: true, + rm: true, + forceRm: true, }, } diff --git a/integration/image/remove_unix_test.go b/integration/image/remove_unix_test.go index a053e4116e..c134ff2a6e 100644 --- a/integration/image/remove_unix_test.go +++ b/integration/image/remove_unix_test.go @@ -46,7 +46,7 @@ func TestRemoveImageGarbageCollector(t *testing.T) { layerStores := make(map[string]layer.Store) layerStores[runtime.GOOS], _ = layer.NewStoreFromOptions(layer.StoreOptions{ - Root: d.Root, + Root: d.Root, MetadataStorePathTemplate: filepath.Join(d.RootDir(), "image", "%s", "layerdb"), GraphDriver: d.StorageDriver(), GraphDriverOptions: nil, diff --git a/integration/service/jobs_test.go b/integration/service/jobs_test.go index 47b0750648..6379b7cad0 100644 --- a/integration/service/jobs_test.go +++ b/integration/service/jobs_test.go @@ -104,7 +104,7 @@ func TestUpdateReplicatedJob(t *testing.T) { id := swarm.CreateService(t, d, swarm.ServiceWithMode(swarmtypes.ServiceMode{ ReplicatedJob: &swarmtypes.ReplicatedJob{ - // use the default, empty values. + // use the default, empty values. }, }), // run "true" so the task exits with 0