Skip to content

Commit

Permalink
run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrick-mesosphere committed Nov 17, 2020
1 parent e3e3d6c commit 5579f40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/builder/v1beta1/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func PipelineRunCancelled(spec *v1beta1.PipelineRunSpec) {
}

// PipelineRunPending sets the status to pending to the PipelineRunSpec.
func PipelineRunPending(spec *v1beta1.PipelineRunSpec){
func PipelineRunPending(spec *v1beta1.PipelineRunSpec) {
spec.Status = v1beta1.PipelineRunSpecStatusPending
}

Expand Down
12 changes: 6 additions & 6 deletions test/pipelinerun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func TestPipelineRunPending(t *testing.T) {
t.Logf("Creating Task, Pipeline, and Pending PipelineRun %s in namespace %s", prName, namespace)

if _, err := c.TaskClient.Create(ctx, &v1beta1.Task{
ObjectMeta: metav1.ObjectMeta{ Name: prName, Namespace: namespace },
ObjectMeta: metav1.ObjectMeta{Name: prName, Namespace: namespace},
Spec: v1beta1.TaskSpec{
Steps: []v1beta1.Step{{Container: corev1.Container{
Image: "ubuntu",
Expand All @@ -355,22 +355,22 @@ func TestPipelineRunPending(t *testing.T) {
}

if _, err := c.PipelineClient.Create(ctx, &v1beta1.Pipeline{
ObjectMeta: metav1.ObjectMeta{ Name: prName, Namespace: namespace },
ObjectMeta: metav1.ObjectMeta{Name: prName, Namespace: namespace},
Spec: v1beta1.PipelineSpec{
Tasks: []v1beta1.PipelineTask{{
Name: "task",
TaskRef: &v1beta1.TaskRef{Name: prName},
Name: "task",
TaskRef: &v1beta1.TaskRef{Name: prName},
}},
},
}, metav1.CreateOptions{}); err != nil {
t.Fatalf("Failed to create Pipeline `%s`: %s", prName, err)
}

pipelineRun, err := c.PipelineRunClient.Create(ctx, &v1beta1.PipelineRun{
ObjectMeta: metav1.ObjectMeta{ Name: prName, Namespace: namespace },
ObjectMeta: metav1.ObjectMeta{Name: prName, Namespace: namespace},
Spec: v1beta1.PipelineRunSpec{
PipelineRef: &v1beta1.PipelineRef{Name: prName},
Status: v1beta1.PipelineRunSpecStatusPending,
Status: v1beta1.PipelineRunSpecStatusPending,
},
}, metav1.CreateOptions{})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion test/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ import (
"strings"
"time"

"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"go.opencensus.io/trace"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"k8s.io/apimachinery/pkg/util/wait"
"knative.dev/pkg/apis"
)
Expand Down

0 comments on commit 5579f40

Please sign in to comment.