From d8c043b932b722988c40fe378416cd1910787ba5 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Mon, 25 Oct 2021 16:05:00 -0500 Subject: [PATCH] WIP - formatting issues and new assert Signed-off-by: Juan Bustamante --- pkg/client/build.go | 2 +- pkg/client/build_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/client/build.go b/pkg/client/build.go index b22710437..c942bb5a9 100644 --- a/pkg/client/build.go +++ b/pkg/client/build.go @@ -363,7 +363,7 @@ func (c *Client) Build(ctx context.Context, opts BuildOptions) error { PreviousImage: opts.PreviousImage, Interactive: opts.Interactive, Termui: termui.NewTermui(), - OCIPath: ociPath, + OCIPath: ociPath, } lifecycleVersion := ephemeralBuilder.LifecycleDescriptor().Info.Version diff --git a/pkg/client/build_test.go b/pkg/client/build_test.go index 197b22dcf..a5d9dafbc 100644 --- a/pkg/client/build_test.go +++ b/pkg/client/build_test.go @@ -2537,6 +2537,7 @@ func testBuild(t *testing.T, when spec.G, it spec.S) { OCIPath: "does/not/exist", }) h.AssertError(t, err, "no such file or directory") + h.AssertError(t, err, "invalid oci path") }) }) })