From e5aaa6f3a3fb568054f24dd6670894b4192bb71c Mon Sep 17 00:00:00 2001 From: "Matt Moore (via sockpuppet)" Date: Thu, 24 Jan 2019 22:40:14 +0000 Subject: [PATCH] golang format tools Produced via: `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))` `goimports -w $(find -name '*.go' | grep -v vendor)` --- .../pipelinerun/resources/pipelinerunresolution_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/reconciler/v1alpha1/pipelinerun/resources/pipelinerunresolution_test.go b/pkg/reconciler/v1alpha1/pipelinerun/resources/pipelinerunresolution_test.go index 5d059daae39..70c532d9a55 100644 --- a/pkg/reconciler/v1alpha1/pipelinerun/resources/pipelinerunresolution_test.go +++ b/pkg/reconciler/v1alpha1/pipelinerun/resources/pipelinerunresolution_test.go @@ -278,7 +278,7 @@ func TestGetResourcesFromBindings(t *testing.T) { t.Fatalf("didn't expect error getting resources from bindings but got: %v", err) } expectedResources := map[string]v1alpha1.PipelineResourceRef{ - "git-resource": v1alpha1.PipelineResourceRef{ + "git-resource": { Name: "sweet-resource", }, } @@ -328,7 +328,7 @@ func TestResolvePipelineRun(t *testing.T) { ), )) providedResources := map[string]v1alpha1.PipelineResourceRef{ - "git-resource": v1alpha1.PipelineResourceRef{ + "git-resource": { Name: "someresource", }, } @@ -520,7 +520,7 @@ func TestResolvePipelineRun_ResourcesDontExist(t *testing.T) { }, } providedResources := map[string]v1alpha1.PipelineResourceRef{ - "git-resource": v1alpha1.PipelineResourceRef{ + "git-resource": { Name: "doesnt-exist", }, }