Skip to content

Commit

Permalink
Pipeline: fix compilation error
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
  • Loading branch information
rkosegi committed Aug 16, 2024
1 parent 67e7b43 commit 9f977ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline/template_engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestTemplateFuncMergeFiles(t *testing.T) {
f2, err := os.CreateTemp("", "yt*.json")
assert.NoError(t, err)
assert.NoError(t, os.WriteFile(f2.Name(), []byte("{ \"B\": 2 }"), 0o664))
res, err := mergeFilesFunc(f1.Name(), f2.Name())
res, err := mergeFilesFunc([]string{f1.Name(), f2.Name()})
assert.NoError(t, err)
assert.NotNil(t, res)
removeFilesLater(t, f1, f2)
Expand All @@ -166,7 +166,7 @@ func TestTemplateFuncMergeFilesInvalid(t *testing.T) {
f2, err := os.CreateTemp("", "yt*.json")
assert.NoError(t, err)
assert.NoError(t, os.WriteFile(f2.Name(), []byte("NOT_A_JSON"), 0o664))
res, err := mergeFilesFunc(f2.Name())
res, err := mergeFilesFunc([]string{f2.Name()})
assert.Error(t, err)
assert.Nil(t, res)
removeFilesLater(t, f2)
Expand Down

0 comments on commit 9f977ce

Please sign in to comment.