Skip to content

Commit

Permalink
resolve conflicts with taskref now a pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Nader Ziada <nziada@pivotal.io>
  • Loading branch information
nader-ziada authored and knative-prow-robot committed Nov 29, 2018
1 parent a90a6e9 commit 3076f41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/reconciler/v1alpha1/taskrun/resources/build_step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestPostBuildSteps(t *testing.T) {
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
TaskRef: &v1alpha1.TaskRef{
Name: "",
APIVersion: "a1",
},
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestPreBuildSteps(t *testing.T) {
Namespace: "foo",
},
Spec: v1alpha1.TaskRunSpec{
TaskRef: v1alpha1.TaskRef{
TaskRef: &v1alpha1.TaskRef{
Name: "",
APIVersion: "a1",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,13 @@ func TestAddResourceToBuild(t *testing.T) {
},
},
Spec: buildv1alpha1.BuildSpec{
Source: &buildv1alpha1.SourceSpec{
Sources: []buildv1alpha1.SourceSpec{{
Name: "the-git-with-branch",
Git: &buildv1alpha1.GitSourceSpec{
Url: "https://github.com/grafeas/kritis",
Revision: "branch",
},
},
}},
},
},
}, {
Expand Down
5 changes: 3 additions & 2 deletions pkg/reconciler/v1alpha1/taskrun/taskrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,13 @@ func TestReconcile(t *testing.T) {
name: "taskrun-with-taskspec",
taskRun: taskruns[6],
wantedBuildSpec: buildv1alpha1.BuildSpec{
Source: &buildv1alpha1.SourceSpec{
Sources: []buildv1alpha1.SourceSpec{{
Name: "git-resource",
Git: &buildv1alpha1.GitSourceSpec{
Url: "https://foo.git",
Revision: "master",
},
},
}},
Steps: []corev1.Container{
entrypointCopyStep,
{
Expand Down

0 comments on commit 3076f41

Please sign in to comment.