Skip to content

Commit d46f694

Browse files
committed
Remove use of filepath in darwin only test
Signed-off-by: Anders F Björklund <[email protected]>
1 parent ff2bcf7 commit d46f694

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkg/networks/commands_darwin_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package networks
22

33
import (
4-
"path/filepath"
54
"testing"
65

76
"gotest.tools/v3/assert"
@@ -12,15 +11,13 @@ func TestVDESock(t *testing.T) {
1211
assert.NilError(t, err)
1312

1413
vdeSock := config.VDESock("foo")
15-
varRunDir := filepath.Join("/", "private", "var", "run", "lima")
16-
assert.Equal(t, vdeSock, filepath.Join(varRunDir, "foo.ctl"))
14+
assert.Equal(t, vdeSock, "/private/var/run/lima/foo.ctl")
1715
}
1816

1917
func TestPIDFile(t *testing.T) {
2018
config, err := DefaultConfig()
2119
assert.NilError(t, err)
2220

2321
pidFile := config.PIDFile("name", "daemon")
24-
varRunDir := filepath.Join("/", "private", "var", "run", "lima")
25-
assert.Equal(t, pidFile, filepath.Join(varRunDir, "name_daemon.pid"))
22+
assert.Equal(t, pidFile, "/private/var/run/lima/name_daemon.pid")
2623
}

0 commit comments

Comments
 (0)