From 8acca5957f0038bb40d4cebf71d7de1c1baa611e Mon Sep 17 00:00:00 2001 From: makoto-soracom Date: Tue, 24 Sep 2024 16:34:04 +0900 Subject: [PATCH] Update scripts/update-homebrew-formula.sh in soracom-cli --- scripts/update-homebrew-formula.sh | 2 +- soracom/generated/cmd/self_update_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/update-homebrew-formula.sh b/scripts/update-homebrew-formula.sh index 1171eb41..23da3018 100755 --- a/scripts/update-homebrew-formula.sh +++ b/scripts/update-homebrew-formula.sh @@ -19,7 +19,7 @@ function cleanup { trap cleanup EXIT cd "$tmpdir" -git clone git@github.com:soracom/homebrew-soracom-cli +git clone https://github.com/soracom/homebrew-soracom-cli.git cd homebrew-soracom-cli git checkout master bash ./update-formula.sh "$version" diff --git a/soracom/generated/cmd/self_update_test.go b/soracom/generated/cmd/self_update_test.go index 64ee15cf..81a6cff6 100644 --- a/soracom/generated/cmd/self_update_test.go +++ b/soracom/generated/cmd/self_update_test.go @@ -3,6 +3,7 @@ package cmd import ( "os" "runtime" + "strings" "testing" "github.com/stretchr/testify/assert" @@ -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 }