Skip to content

Commit 63a7141

Browse files
committed
Tweak output and fix tests
1 parent caa6a3f commit 63a7141

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/setup-envtest/output/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (f PrintFormat) Sprintf(out io.Writer, version versions.Concrete, platform
6868
return e
6969
}
7070
if md5 != "" {
71-
if _, e := fmt.Fprintf(out, "md5: %s\n", md5); e != nil {
71+
if _, e := fmt.Fprintf(out, "Checksum: %s\n", md5); e != nil {
7272
return e
7373
}
7474
}

tools/setup-envtest/output/output_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ var _ = Describe("PrintFormat", func() {
5151
path = "/kb's test store/k8s/1.21.3-linux-amd64"
5252
})
5353

54+
JustBeforeEach(func() {
55+
outBuffer = &bytes.Buffer{}
56+
})
57+
5458
Describe("PrintOverview", func() {
5559
JustBeforeEach(func() {
5660
Expect(output.PrintOverview.Sprintf(

0 commit comments

Comments
 (0)