Skip to content

Commit 3a56b1b

Browse files
committed
Fix unit test
1 parent 10bb61d commit 3a56b1b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pkg/component/runtime/command.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ const (
3333
actionStop = actionMode(0)
3434
actionStart = actionMode(1)
3535

36-
runDirMod = 0770
37-
3836
envAgentComponentID = "AGENT_COMPONENT_ID"
3937
envAgentComponentType = "AGENT_COMPONENT_TYPE"
4038

pkg/component/runtime/manager_fake_input_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"context"
99
"errors"
1010
"fmt"
11-
"os"
1211
"path/filepath"
1312
"regexp"
1413
"runtime"
@@ -2902,9 +2901,7 @@ LOOP:
29022901
err = <-errCh
29032902
require.NoError(t, err)
29042903

2905-
workDir := filepath.Join(paths.Run(), comp.ID)
2906-
_, err = os.Stat(workDir)
2907-
require.ErrorIs(t, err, os.ErrNotExist)
2904+
require.DirExists(t, comp.WorkDirPath(paths.Run()))
29082905
}
29092906

29102907
func signalState(subErrCh chan error, state *ComponentState, acceptableStates []client.UnitState) {

0 commit comments

Comments
 (0)