Skip to content

Commit

Permalink
Fix unrelated sanity check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Feb 26, 2021
1 parent d013109 commit 060e617
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/build_to_buildruns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 060e617

Please sign in to comment.