diff --git a/pkg/ddc/alluxio/utils_test.go b/pkg/ddc/alluxio/utils_test.go index 6136bc2644e..671973347b8 100644 --- a/pkg/ddc/alluxio/utils_test.go +++ b/pkg/ddc/alluxio/utils_test.go @@ -921,6 +921,10 @@ func TestGetInitTierPathsEnv(t *testing.T) { } } +// TestGetMountRoot tests the function that retrieves the mount root directory. +// It checks if the function correctly returns the expected mount root path based on the environment variable MOUNT_ROOT. +// The test sets the MOUNT_ROOT environment variable to a specific path and verifies that the function returns the correct mount root path.revise twice. +// The expected mount root path is constructed by appending "/alluxio" to the value of MOUNT_ROOT. func TestGetMountRoot(t *testing.T) { tests := []struct { name string