Skip to content

Commit e11c829

Browse files
committed
fix test for GetExecPath
1 parent caf8060 commit e11c829

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pipeline/pipeline_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package pipeline
22

33
import (
4-
"fmt"
54
"io/ioutil"
65
"os"
76
"path/filepath"
@@ -332,7 +331,7 @@ func TestGetExecPath(t *testing.T) {
332331
Created: time.Now(),
333332
}
334333

335-
expectedPath := fmt.Sprintf("%s%s_%s", tmp, p.Name, p.Type)
334+
expectedPath := filepath.Join(tmp, appendTypeToName(p.Name, p.Type))
336335
execPath := GetExecPath(p)
337336

338337
if execPath != expectedPath {

0 commit comments

Comments
 (0)