From 32272c9d760ecf8bf814888622c330b021aa17e0 Mon Sep 17 00:00:00 2001 From: Arceus-gyx <211870069@smail.nju.edu.cn> Date: Sun, 16 Mar 2025 20:01:15 +0800 Subject: [PATCH] Add comments/notation to TestOptimizeDefaultForWorkerNoValue in pkg\ddc\alluxio\transform_optimization_test.go Signed-off-by: Arceus-gyx <211870069@smail.nju.edu.cn> --- pkg/ddc/alluxio/transform_optimization_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/ddc/alluxio/transform_optimization_test.go b/pkg/ddc/alluxio/transform_optimization_test.go index 6d7403eaa01..558aeeeef39 100644 --- a/pkg/ddc/alluxio/transform_optimization_test.go +++ b/pkg/ddc/alluxio/transform_optimization_test.go @@ -221,6 +221,14 @@ func TestOptimizeDefaultForMasterWithValue(t *testing.T) { } } +// TestOptimizeDefaultForWorkerNoValue tests the default behavior of the optimizeDefaultForWorker function when no Worker JVM options are set. +// This test case verifies whether the optimizeDefaultForWorker function correctly sets the default JVM options when the Worker JVM options in AlluxioRuntime and Alluxio are empty. +// +// Parameters: +// - t *testing.T: The testing framework used to report errors and log test results. +// +// Return: +// - None. The function asserts the expected JVM options against the actual values and reports errors if they do not match. func TestOptimizeDefaultForWorkerNoValue(t *testing.T) { var tests = []struct { runtime *datav1alpha1.AlluxioRuntime