Skip to content

Commit bac2730

Browse files
This PR is to add comments to TestGetMountRoot(t *testing.T) in pkg\ddc\alluxio\utils_test.go (#4951)
* add notation to utils_test.go in pkg\ddc\alluxio\utils_test.go Signed-off-by: moonmoonbirdfly <3067697506@qq.com> * add notation to utils_test.go in pkg\ddc\alluxio\utils_test.go Signed-off-by: moonmoonbirdfly <3067697506@qq.com> * add notation to TestGetMountRoot in pkg\ddc\alluxio\utils_test.go Signed-off-by: moonmoonbirdfly <3067697506@qq.com> --------- Signed-off-by: moonmoonbirdfly <3067697506@qq.com>
1 parent 7e3e0dc commit bac2730

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
@@ -951,6 +951,10 @@ func TestGetInitTierPathsEnv(t *testing.T) {
951951
}
952952
}
953953

954+
// TestGetMountRoot tests the function that retrieves the mount root directory.
955+
// It checks if the function correctly returns the expected mount root path based on the environment variable MOUNT_ROOT.
956+
// 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.
957+
// The expected mount root path is constructed by appending "/alluxio" to the value of MOUNT_ROOT.
954958
func TestGetMountRoot(t *testing.T) {
955959
tests := []struct {
956960
name string

0 commit comments

Comments
 (0)