Skip to content

Commit aa231cf

Browse files
committed
test(unit): fix test
1 parent 1d59895 commit aa231cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

services/tasks/TaskRunner_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,10 @@ func TestTaskGetPlaybookArgs3(t *testing.T) {
690690
}
691691

692692
func TestCheckTmpDir(t *testing.T) {
693+
util.Config = &util.ConfigType{
694+
TmpPath: "/tmp",
695+
}
696+
693697
//It should be able to create a random dir in /tmp
694698
dirName := path.Join(os.TempDir(), util.RandString(rand.Intn(10-4)+4))
695699
err := checkTmpDir(dirName)

0 commit comments

Comments
 (0)