Skip to content

Commit

Permalink
test: Example test did not add any value
Browse files Browse the repository at this point in the history
By changing the log redirection, the standard output changed. We do not
need this test.
  • Loading branch information
zucchinidev committed Oct 30, 2024
1 parent b5c8cda commit 7b0d449
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pkg/brokerpak/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package brokerpak

import (
"bytes"
"fmt"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -99,21 +98,17 @@ func fakeBrokerpak() (string, error) {
return Pack(dir, "", true, false, platform.Platform{})
}

func ExampleValidate() {
func TestValidate(t *testing.T) {
pk, err := fakeBrokerpak()
defer os.Remove(pk)

if err != nil {
panic(err)
t.Fatal(err)
}

if err := Validate(pk); err != nil {
panic(err)
} else {
fmt.Println("ok!")
t.Fatal(err)
}

// Output: ok!
}

func TestFinfo(t *testing.T) {
Expand Down

0 comments on commit 7b0d449

Please sign in to comment.