From 2547a9c6b356e80b288eed1e7669a7eb38d46cce Mon Sep 17 00:00:00 2001 From: Davor Kapsa Date: Fri, 22 Mar 2019 18:46:51 +0100 Subject: [PATCH] check NewGo error --- pkg/build/gobuild_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/build/gobuild_test.go b/pkg/build/gobuild_test.go index 9b234c90..e7e0e83a 100644 --- a/pkg/build/gobuild_test.go +++ b/pkg/build/gobuild_test.go @@ -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 { @@ -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 {