diff --git a/pkg/ddc/alluxio/operations/base_test.go b/pkg/ddc/alluxio/operations/base_test.go index dc1b3c3f69b..00b2ffcd2c8 100644 --- a/pkg/ddc/alluxio/operations/base_test.go +++ b/pkg/ddc/alluxio/operations/base_test.go @@ -141,7 +141,9 @@ func TestAlluxioFileUtils_Du(t *testing.T) { } } -func TestAlluxioFileUtils_ReportSummary(t *testing.T) { + // TestAlluxioFileUtils_ReportSummary tests the AlluxioFileUtils.ReportSummary method + // for both failure and success cases by mocking the internal exec command. + func TestAlluxioFileUtils_ReportSummary(t *testing.T) { ExecCommon := func(a AlluxioFileUtils, command []string, verbose bool) (stdout string, stderr string, err error) { return "Alluxio cluster summary", "", nil }