Skip to content

Commit

Permalink
test: fix check resolving Rocks path
Browse files Browse the repository at this point in the history
The issues with the TestGetRocksRepoPath was when run Unit test with
applied Tarantool env.sh and TT_CLI_REPO_ROCKS environment variable.
  • Loading branch information
dmyger committed Dec 9, 2024
1 parent f66fb27 commit 9129ba4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/rocks/rocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func TestAddLuarocksRepoOpts(t *testing.T) {
}

func TestGetRocksRepoPath(t *testing.T) {
os.Unsetenv(repoRocksPathEnvVarName)
assert.EqualValues(t, "./testdata/repo", getRocksRepoPath("./testdata/repo"))
assert.EqualValues(t, "./testdata/emptyrepo", getRocksRepoPath("./testdata/emptyrepo"))

Expand Down

0 comments on commit 9129ba4

Please sign in to comment.