From 32cac1471acb21f8d581d5caec3060e5776a1afa Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Thu, 7 Oct 2021 11:25:51 +0200 Subject: [PATCH] Ensure taskRunSample is not nil --- pkg/reconciler/buildrun/buildrun_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/reconciler/buildrun/buildrun_test.go b/pkg/reconciler/buildrun/buildrun_test.go index a9dacd1410..5efaf0600e 100644 --- a/pkg/reconciler/buildrun/buildrun_test.go +++ b/pkg/reconciler/buildrun/buildrun_test.go @@ -104,6 +104,7 @@ var _ = Describe("Reconcile BuildRun", func() { // init the Build resource, this never change throughout this test suite buildSample = ctl.DefaultBuild(buildName, strategyName, build.ClusterBuildStrategyKind) buildRunSample = ctl.DefaultBuildRun(buildRunName, buildName) + taskRunSample = ctl.DefaultTaskRunWithStatus(taskRunName, buildRunName, ns, corev1.ConditionTrue, "Succeeded") }) // JustBeforeEach will always execute just before the It() specs,