diff --git a/pkg/ddc/alluxio/utils_test.go b/pkg/ddc/alluxio/utils_test.go index d6e055100d7..6136bc2644e 100644 --- a/pkg/ddc/alluxio/utils_test.go +++ b/pkg/ddc/alluxio/utils_test.go @@ -170,6 +170,10 @@ func TestMountRootWithEnvSet(t *testing.T) { } } +// TestMountRootWithoutEnvSet tests the getMountRoot function when the MountRoot environment variable is not set. +// It verifies that getMountRoot returns the default mount root path "/alluxio" when no environment variable is configured. +// The test unsets the MountRoot environment variable and compares the actual result with the expected default value. + func TestMountRootWithoutEnvSet(t *testing.T) { var testCases = []struct { input string