From ec4dd01172485035f757a79d6cd004a5dbb62626 Mon Sep 17 00:00:00 2001 From: Xiepengyu2004 <1946337564@qq.com> Date: Fri, 30 May 2025 11:35:46 +0800 Subject: [PATCH] Add Notation to TestOptimizeDefaultForWorkerWithValue in pkg/ddc/alluxio/transform_optimization_test.go Signed-off-by: Xiepengyu2004 <1946337564@qq.com> --- 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 1506539ffce..17f5d0de810 100644 --- a/pkg/ddc/alluxio/transform_optimization_test.go +++ b/pkg/ddc/alluxio/transform_optimization_test.go @@ -258,6 +258,14 @@ func TestOptimizeDefaultForWorkerNoValue(t *testing.T) { } } +// TestOptimizeDefaultForWorkerWithValue tests the behavior of the optimizeDefaultForWorker function when Worker JVM options are explicitly set in AlluxioRuntime. +// This test case verifies whether the optimizeDefaultForWorker function correctly preserves and applies the specified JVM options instead of using default values when they are provided in AlluxioRuntime. +// +// 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 TestOptimizeDefaultForWorkerWithValue(t *testing.T) { var tests = []struct { runtime *datav1alpha1.AlluxioRuntime