From 060e6177d66dba5540421ef54e04d2285dae21b9 Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Fri, 26 Feb 2021 11:52:30 +0100 Subject: [PATCH] Fix unrelated sanity check issues --- test/integration/build_to_buildruns_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/build_to_buildruns_test.go b/test/integration/build_to_buildruns_test.go index 3c3b56378e..049d14362e 100644 --- a/test/integration/build_to_buildruns_test.go +++ b/test/integration/build_to_buildruns_test.go @@ -193,12 +193,12 @@ var _ = Describe("Integration tests Build and BuildRuns", func() { Expect(tb.CreateBR(buildRunObject)).To(BeNil()) - br, err := tb.GetBRTillStartTime(buildRunObject.Name) + _, err = tb.GetBRTillStartTime(buildRunObject.Name) Expect(err).To(BeNil()) Expect(tb.DeleteBuild(BUILD + tb.Namespace)).To(BeNil()) - br, err = tb.GetBR(buildRunObject.Name) + br, err := tb.GetBR(buildRunObject.Name) Expect(err).To(BeNil()) Expect(br.Status.CompletionTime).To(BeNil()) Expect(br.Status.GetCondition(v1alpha1.Succeeded).Type).To(Equal(v1alpha1.Succeeded)) @@ -227,10 +227,10 @@ var _ = Describe("Integration tests Build and BuildRuns", func() { Expect(tb.CreateBR(buildRunObject)).To(BeNil()) - br, err := tb.GetBRTillCompletion(buildRunObject.Name) + _, err := tb.GetBRTillCompletion(buildRunObject.Name) Expect(err).To(BeNil()) - br, err = tb.GetBR(buildRunObject.Name) + br, err := tb.GetBR(buildRunObject.Name) Expect(err).To(BeNil()) Expect(br.Status.Reason).To(Equal(fmt.Sprintf("Build.build.dev \"%s\" not found", BUILD+tb.Namespace))) Expect(br.Status.StartTime).To(BeNil())