Skip to content

Commit

Permalink
Tweak output and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasaschan committed May 3, 2024
1 parent caa6a3f commit 63a7141
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/setup-envtest/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (f PrintFormat) Sprintf(out io.Writer, version versions.Concrete, platform
return e
}
if md5 != "" {
if _, e := fmt.Fprintf(out, "md5: %s\n", md5); e != nil {
if _, e := fmt.Fprintf(out, "Checksum: %s\n", md5); e != nil {
return e
}
}
Expand Down
4 changes: 4 additions & 0 deletions tools/setup-envtest/output/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ var _ = Describe("PrintFormat", func() {
path = "/kb's test store/k8s/1.21.3-linux-amd64"
})

JustBeforeEach(func() {
outBuffer = &bytes.Buffer{}
})

Describe("PrintOverview", func() {
JustBeforeEach(func() {
Expect(output.PrintOverview.Sprintf(
Expand Down

0 comments on commit 63a7141

Please sign in to comment.