Skip to content

Commit 18482f8

Browse files
authored
This PR is to add comments to TestMountRootWithoutEnvSet in pkg\ddc\alluxio\utils_t… (#4906)
* Add comments to TestMountRootWithoutEnvSet in pkg\ddc\alluxio\utils_test.go Signed-off-by: poirot <554137585@qq.com> * Add comments to TestMountRootWithoutEnvSet in pkg\ddc\alluxio\utils_test.go Signed-off-by: poirot <554137585@qq.com> --------- Signed-off-by: poirot <554137585@qq.com>
1 parent 5d4b734 commit 18482f8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/ddc/alluxio/utils_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ func TestMountRootWithEnvSet(t *testing.T) {
170170
}
171171
}
172172

173+
// TestMountRootWithoutEnvSet tests the getMountRoot function when the MountRoot environment variable is not set.
174+
// It verifies that getMountRoot returns the default mount root path "/alluxio" when no environment variable is configured.
175+
// The test unsets the MountRoot environment variable and compares the actual result with the expected default value.
176+
173177
func TestMountRootWithoutEnvSet(t *testing.T) {
174178
var testCases = []struct {
175179
input string

0 commit comments

Comments
 (0)