Skip to content

Commit

Permalink
Fix cfgvars test on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Natanael Copa <[email protected]>
  • Loading branch information
ncopa committed Dec 19, 2024
1 parent e3ab3c1 commit 2fba927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/cfgvars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func TestNewCfgVars_KubeletRootDir(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
c, err := NewCfgVars(tt.fakeCmd, tt.dirs...)
assert.NoError(t, err)
expected, err := filepath.Abs(tt.expected.KubeletRootDir)
expected, err := filepath.Abs(filepath.Join(tt.expected.KubeletRootDir))

Check failure on line 187 in pkg/config/cfgvars_test.go

View workflow job for this annotation

GitHub Actions / Lint

badCall: suspicious Join on 1 argument (gocritic)
assert.NoError(t, err)
assert.Equal(t, expected, c.KubeletRootDir)
})
Expand Down

0 comments on commit 2fba927

Please sign in to comment.