Skip to content

Commit

Permalink
support macOS which uses /var as symlink to /private/var
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmini committed Sep 20, 2024
1 parent 4733f39 commit 0647c34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generators/cmd/predefined/self_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"os"
"runtime"
"strings"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -202,5 +203,5 @@ func TestDetermineActualPathOf(t *testing.T) {

actualPath, err = determineActualPathOf(tempSymlinkPath)
assert.NoError(t, err)
assert.Equal(t, tempFilePath, actualPath)
assert.True(t, strings.Contains(actualPath, tempFilePath)) // https://github.com/soracom/soracom-cli/pull/99#pullrequestreview-2312477684
}

0 comments on commit 0647c34

Please sign in to comment.