Skip to content

Commit

Permalink
check NewGo error
Browse files Browse the repository at this point in the history
  • Loading branch information
dvrkps authored Mar 22, 2019
1 parent f0a367d commit 2547a9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/build/gobuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func TestGoBuildNoKoData(t *testing.T) {
WithBaseImages(func(string) (v1.Image, error) { return base, nil }),
withBuilder(writeTempFile),
)
if err != nil {
t.Fatalf("NewGo() = %v", err)
}

img, err := ng.Build(filepath.Join(importpath, "cmd", "ko"))
if err != nil {
Expand Down Expand Up @@ -170,6 +173,9 @@ func TestGoBuild(t *testing.T) {
WithBaseImages(func(string) (v1.Image, error) { return base, nil }),
withBuilder(writeTempFile),
)
if err != nil {
t.Fatalf("NewGo() = %v", err)
}

img, err := ng.Build(filepath.Join(importpath, "cmd", "ko", "test"))
if err != nil {
Expand Down

0 comments on commit 2547a9c

Please sign in to comment.