From 644b7ffac5aa8d6d62944045615010c99186e69b Mon Sep 17 00:00:00 2001 From: vic <1480149743@qq.com> Date: Mon, 29 Jun 2026 13:39:42 +0800 Subject: [PATCH] Add comments to TestSyncScheduleInfoToCacheNodes --- pkg/ddc/efc/node_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/ddc/efc/node_test.go b/pkg/ddc/efc/node_test.go index 0d343e1af3c..346f366400b 100644 --- a/pkg/ddc/efc/node_test.go +++ b/pkg/ddc/efc/node_test.go @@ -52,7 +52,11 @@ func getTestEFCEngineNode(client client.Client, name string, namespace string, w } return engine } - +// TestSyncScheduleInfoToCacheNodes verifies that SyncScheduleInfoToCacheNodes +// correctly synchronizes scheduling information to cache nodes by updating +// node labels based on the locations of worker pods. It covers scenarios +// including creating new labels, adding labels to existing nodes, and +// skipping synchronization when the worker pod has no controller. func TestSyncScheduleInfoToCacheNodes(t *testing.T) { type fields struct { // runtime *datav1alpha1.EFCRuntime