Skip to content

Commit

Permalink
fix test - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Dec 10, 2020
1 parent 9e8cecb commit cd9f19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cd9f19e

Please sign in to comment.