Skip to content

Commit fb0a8ab

Browse files
author
lyx0117
committed
Add comments/notation to TestMountRootWithEnvSet(t *testing.T) in pkg\ddc\alluxio\utils_test.go
Signed-off-by: lyx0117 <1622038893@qq.com>
1 parent 64d0c51 commit fb0a8ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/ddc/alluxio/utils_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ func TestAlluxioEngine_getInitUsersArgs(t *testing.T) {
154154
}
155155
}
156156

157+
// Tests getMountRoot() with env var set. Verifies it correctly appends default subpath.
158+
// Example: "/var/lib/mymount" → "/var/lib/mymount/alluxio"
159+
// Note: t.Setenv auto-cleans after test. Add more cases for empty paths, etc. if needed.
157160
func TestMountRootWithEnvSet(t *testing.T) {
158161
var testCases = []struct {
159162
input string

0 commit comments

Comments
 (0)