From cd9f19e65a7797fadd2439af9924b53cf741e9cc Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Wed, 9 Dec 2020 16:26:50 -0800 Subject: [PATCH] fix test - 2 --- pkg/executor/build_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/executor/build_test.go b/pkg/executor/build_test.go index af716b55f0..92bcd61eec 100644 --- a/pkg/executor/build_test.go +++ b/pkg/executor/build_test.go @@ -802,7 +802,7 @@ func Test_stageBuilder_build(t *testing.T) { tarContent := generateTar(t, dir, filename) - ch := NewCompositeCache("", "") + ch := NewCompositeCache(fmt.Sprintf("COPY %s foo.txt", filename)) ch.AddPath(filepath, util.FileContext{}) hash, err := ch.Hash() @@ -889,7 +889,7 @@ func Test_stageBuilder_build(t *testing.T) { } filePath := filepath.Join(dir, filename) - ch := NewCompositeCache("", fmt.Sprintf("RUN foobar")) + ch := NewCompositeCache("", "RUN foobar") hash1, err := ch.Hash() if err != nil {